File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- const semanticRelease = require ( " semantic-release" ) ;
2- const configPromise = require ( " ./release.config.js" ) ;
1+ const semanticRelease = require ( ' semantic-release' ) ;
2+ const configPromise = require ( ' ./release.config.js' ) ;
33
44configPromise . then ( ( config ) => {
55 const currentPackage = require ( `${ process . cwd ( ) } /package.json` ) ;
6- const isSDK = currentPackage . name === " stream-chat-react-native-core" ;
6+ const isSDK = currentPackage . name === ' stream-chat-react-native-core' ;
77
88 const newConfig = {
99 ...config ,
10- branches : [ " master" ] ,
10+ branches : [ ' master' ] ,
1111 } ;
1212
1313 if ( process . env . GH_TOKEN || process . env . GITHUB_TOKEN ) {
14- const commitMessage = 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}' ;
14+ const commitMessage =
15+ 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}' ;
1516
1617 newConfig . plugins . push ( [
1718 '@semantic-release/exec' ,
1819 {
19- prepareCmd : `git diff-index --quiet HEAD -- ${ process . cwd ( ) } /* || git add ${ process . cwd ( ) } /* && git commit -m "${ commitMessage } " && git push origin master` ,
20+ prepareCmd : `git diff-index --quiet HEAD -- ${ process . cwd ( ) } /* && exit 0 || ( git add ${ process . cwd ( ) } /* && git commit -m "${ commitMessage } " && git push origin master) ` ,
2021 } ,
2122 ] ) ;
2223
You can’t perform that action at this time.
0 commit comments