Compare commits
2 Commits
e138879479
...
f956ba16c6
Author | SHA1 | Date | |
---|---|---|---|
f956ba16c6 | |||
c0016e676e |
10
jenkins.js
10
jenkins.js
@ -18,11 +18,9 @@ if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string')
|
||||
|
||||
child_process.exec ('git log -1 | grep \'\\[no publish\\]\'')
|
||||
.addListener ('exit', (code) => {
|
||||
if (code === 0)
|
||||
if (code === 0) {
|
||||
console.log ('build not marked for deployment');
|
||||
|
||||
// process.exit (1);
|
||||
|
||||
else
|
||||
child_process.execSync ('yarn publish');
|
||||
process.exit (0);
|
||||
}
|
||||
else { child_process.execSync ('yarn publish'); }
|
||||
});
|
||||
|
Reference in New Issue
Block a user