mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
fix: exit with non-zero code when npm publish fails
The publish script was catching errors and logging them but exiting with code 0, causing the CI workflow to show green even when publishing failed. Now calls process.exit(1) on publish failure.
This commit is contained in:
@@ -144,6 +144,7 @@ async function publish(ignoreErrors = false) {
|
||||
} catch (e) {
|
||||
Logger.error('Error publishing!');
|
||||
Logger.error(e);
|
||||
process.exit(1);
|
||||
}
|
||||
Logger.profile('Publishing');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user