Skip to content

Commit 668a069

Browse files
committed
fix: exit with non-zero code when npm publish fails
1 parent 73bca95 commit 668a069

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/semantic-prerelease.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if (dryRun) {
3232

3333
if (error) {
3434
console.error(`[ERROR] npm publish: ${stderr}`);
35+
process.exit(1);
3536
}
3637
});
3738
}

0 commit comments

Comments
 (0)