-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
32 lines (31 loc) · 907 Bytes
/
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
// copy this config into lib
const name = 'lead';
const srcRoot = '.'; // or `packages/${name}`;
module.exports = {
extends: './release.config.base.js',
pkgRoot: `dist/${srcRoot}`,
// eslint-disable-next-line no-template-curly-in-string
tagFormat: name + '-v${version}',
commitPaths: [`${srcRoot}/*`],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: `${srcRoot}/CHANGELOG.md`,
},
],
// '@semantic-release/npm',
[
'@semantic-release/git',
{
assets: [`${srcRoot}/package.json`, `${srcRoot}/CHANGELOG.md`],
message:
`release(version): Release ${name}` +
// eslint-disable-next-line no-template-curly-in-string
'${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};