Skip to content

Commit acffca9

Browse files
committed
chore: update
1 parent 9bc9fa2 commit acffca9

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

release.config.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// https://semantic-release.gitbook.io/semantic-release/usage/configuration
2-
const pkg = require('./package.json');
3-
const branch = process.env.BRANCH || process.env.CI_REF_NAME || '';
4-
const branchSlug = branch.replace(/\//g, '-');
5-
const branchPrefix = branch.split('/')[0];
2+
const pkg = require('./package.json')
3+
const branch = process.env.BRANCH || process.env.CI_REF_NAME || ''
4+
const branchSlug = branch.replace(/\//g, '-')
5+
const branchPrefix = branch.split('/')[0]
66

7-
const isMaster = branch === 'master' || branch === 'main';
7+
const isMaster = branch === 'master' || branch === 'main'
88
// semantic-release configuration
99
module.exports = {
1010
branches: [
@@ -48,7 +48,6 @@ module.exports = {
4848
],
4949
},
5050
],
51-
['@semantic-release/release-notes-generator'],
5251
// https://github.com/semantic-release/npm
5352
['@semantic-release/npm'],
5453
// https://github.com/semantic-release/github
@@ -63,13 +62,20 @@ module.exports = {
6362
isMaster && [
6463
'@semantic-release/git',
6564
{
66-
assets: ['package.json', 'package-lock.json', 'yarn.lock', 'npm-shrinkwrap.json', 'CHANGELOG.md'],
67-
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
65+
assets: [
66+
'package.json',
67+
'package-lock.json',
68+
'yarn.lock',
69+
'npm-shrinkwrap.json',
70+
'CHANGELOG.md',
71+
],
72+
message:
73+
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
6874
GIT_AUTHOR_NAME: pkg.author.name,
6975
GIT_AUTHOR_EMAIL: pkg.author.email,
7076
GIT_COMMITTER_NAME: pkg.author.name,
7177
GIT_COMMITTER_EMAIL: pkg.author.email,
7278
},
7379
],
7480
].filter(Boolean),
75-
};
81+
}

0 commit comments

Comments
 (0)