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