-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.config.js
65 lines (65 loc) · 1.59 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
56
57
58
59
60
61
62
63
64
65
module.exports = {
// HACK: The ConditionCircle plugin hasn't been updated for the breaking changes in semantic-release v16. So it expects the key
// `branch` to exist despite semantic-release switching to `branches` in v16
branch: 'release',
branches: 'release',
plugins: [
[
'@semantic-release/release-notes-generator',
{
parserOpts: {
noteKeywords: [
'BREAKING CHANGE',
'BREAKING CHANGES',
'BREAKING',
],
},
writerOpts: {
commitsSort: [
'subject',
'scope',
],
},
},
],
'@semantic-release/git',
],
verifyConditions: [
'condition-circle',
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
getLastRelease: '@semantic-release/npm',
prepare: [
{
path: '@semantic-release/changelog',
changelogFile: 'CHANGELOG.md',
},
{
path: '@semantic-release/git',
// eslint-disable-next-line no-template-curly-in-string
message: '📚 Add ${nextRelease.version} release notes [skip ci]',
},
],
publish: [
{
path: '@semantic-release/exec',
// eslint-disable-next-line no-template-curly-in-string
cmd: './tools/ci/inject-version-number.sh ${nextRelease.version}',
},
{
path: '@semantic-release/npm',
npmPublish: true,
pkgRoot: 'dist/ngx-tools',
},
{
path: '@semantic-release/github',
assets: [
'CHANGELOG.md',
],
npmPublish: false,
},
],
};