-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathrelease.config.js
43 lines (43 loc) · 1.05 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
/* eslint-disable no-template-curly-in-string */
module.exports = {
branches: ['deploy', '+([0-9])?(.{+([0-9]),x}).x', 'prerelease'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'chore', scope: 'pre-release', release: 'patch' },
],
},
],
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
changelogTitle: '# Change Log',
},
],
[
'@semantic-release/exec',
{
prepareCmd: ['deploy', '3.x', '4.x'].includes(process.env.GITHUB_REF_NAME)
? './scripts/publish.sh ${nextRelease.version}'
: './scripts/prerelease-publish.sh ${nextRelease.version}',
},
],
'@semantic-release/git',
[
'@semantic-release/github',
{
assets: [
{
path: '*.vsix',
label: 'Extension File',
},
],
},
],
],
};