-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.config.js
55 lines (53 loc) · 1.78 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const common = {
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'revert', section: 'Reverts' },
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'perf', section: 'Performance Improvements' },
{ type: 'refactor', section: 'Code Refactoring' },
{ type: 'build', section: 'Build System', hidden: true },
{ type: 'chore', section: 'Chores', hidden: true },
{ type: 'ci', section: 'Continuous Integration', hidden: true },
{ type: 'docs', section: 'Documentation', hidden: true },
{ type: 'style', section: 'Styles', hidden: true },
{ type: 'test', section: 'Tests', hidden: true },
]
},
releaseRules: [
{ breaking: true, release: 'major' },
{ revert: true, release: 'patch' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'build', release: false },
{ scope: 'no-release', release: false },
{ scope: 'deps-dev', release: false },
{ scope: 'dev-deps', release: false },
],
parserOpts: {
noteKeywords: ['BREAKING CHANGES', 'BREAKING CHANGE'],
},
}
const vsixName = 'quickopener.vsix'
module.exports = {
branches: [
'+([0-9])?(.{+([0-9]),x}).x',
'main',
'next',
{ name: 'beta', prerelease: true },
{ name: 'alpha', prerelease: true },
],
plugins: [
['@semantic-release/commit-analyzer', common],
['@semantic-release/release-notes-generator', common],
'@semantic-release/changelog',
['semantic-release-vsce', { packageVsix: vsixName }],
'@semantic-release/git',
['@semantic-release/github', {
assets: [{ path: vsixName, label: `Packaged extension (${vsixName})` }],
}],
]
}