-
Notifications
You must be signed in to change notification settings - Fork 18
/
release.config.js
40 lines (40 loc) · 1.27 KB
/
release.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Setup Semantic Release plugins.
// See https://semantic-release.gitbook.io/semantic-release/extending/plugins-list for more plugins.
module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular', // default
releaseRules: [
// Explained on https://github.com/semantic-release/commit-analyzer#releaserules
// Mark all chagnes with scope `web` & `extensions` as a patch until official release
{ scope: 'web', release: false },
{ scope: 'extensions', release: false },
{ type: 'feat', scope: 'web', release: 'patch' },
{ type: 'fix', scope: 'web', release: 'patch' },
{ type: 'perf', scope: 'web', release: 'patch' },
{ type: 'feat', scope: 'extensions', release: 'patch' },
{ type: 'fix', scope: 'extensions', release: 'patch' },
{ type: 'perf', scope: 'extensions', release: 'patch' },
],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
'@semantic-release/github',
{
failComment: false,
},
],
'@semantic-release/git',
],
};