-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.js
44 lines (41 loc) · 1009 Bytes
/
.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
const projectNames = require('./build/rollup/_syncPkg')._buildGetProjects()
const NPM = '@semantic-release/npm';
const GH = '@semantic-release/github';
function exec(cmd) {
return {
cmd,
path: '@semantic-release/exec'
}
}
module.exports = {
generateNotes: {
config: '@alorel-personal/conventional-changelog-alorel'
},
prepare: [
'@semantic-release/changelog',
NPM,
exec('npm run sync-pkg'),
exec('npm run doctoc'),
{
assets: [
'CHANGELOG.md',
'README.md',
'package.json',
'package-lock.json',
...projectNames.flatMap(n => [`projects/${n}/package.json`, `projects/${n}.README.md`])
],
message: 'chore(release): ${nextRelease.version}',
path: '@semantic-release/git'
},
exec('npm run rollup')
],
publish: [
...projectNames.map(p => exec(`bash -c "cd dist/${p} && npm publish"`)),
GH
],
tagFormat: '${version}',
verifyConditions: [
{path: NPM, pkgRoot: '.'},
GH
]
};