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:
Daniel Sogl
2026-03-21 16:27:56 -07:00
parent a164e7134a
commit b2f8570444
+1
View File
@@ -144,6 +144,7 @@ async function publish(ignoreErrors = false) {
} catch (e) {
Logger.error('Error publishing!');
Logger.error(e);
process.exit(1);
}
Logger.profile('Publishing');
}