-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.js
61 lines (60 loc) · 1.5 KB
/
.releaserc.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
/**
* Release configuration for the monorepo
*
* For more info;
* - https://github.com/Updater/semantic-release-monorepo
* - https://github.com/semantic-release/semantic-release
* - https://github.com/lerna/lerna
*/
module.exports = {
branch: 'master',
// tagFormat: 'v${version}',
monorepo: {
analyzeCommits: [
'@semantic-release/commit-analyzer'
],
generateNotes: [
'@semantic-release/release-notes-generator'
]
},
/**
* Move plugins from verifyConditions to verifyRelease to
* reduce expensive network calls (50%+ runtime reduction).
* https://github.com/Updater/semantic-release-monorepo#reduce-expensive-network-calls-50-runtime-reduction
*/
verifyConditions: [],
verifyRelease: [
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github'
]
.map(require)
.map(x => x.verifyConditions),
prepare: [
{
path: '@semantic-release/changelog',
changelogTitle: '# CHANGELOG'
},
'@semantic-release/npm',
{
'path': '@semantic-release/git',
'message': 'chore(release): ${nextRelease.gitTag} [skip ci]\n\n${nextRelease.notes}'
}
],
publish: [
// {
// path: '@semantic-release/exec',
// cmd: 'echo "Execute publish/deploy commands and scripts"'
// },
'@semantic-release/npm',
'@semantic-release/github'
],
success: [
'@semantic-release/github'
],
fail: [
'@semantic-release/github'
],
npmPublish: false
};