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
99module . 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