From b2f8570444aad3c6151ac9409791b6458ec0ddbe Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 21 Mar 2026 16:27:56 -0700 Subject: [PATCH] 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. --- scripts/tasks/publish.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/tasks/publish.ts b/scripts/tasks/publish.ts index caa27c37e..8ef452e4d 100644 --- a/scripts/tasks/publish.ts +++ b/scripts/tasks/publish.ts @@ -144,6 +144,7 @@ async function publish(ignoreErrors = false) { } catch (e) { Logger.error('Error publishing!'); Logger.error(e); + process.exit(1); } Logger.profile('Publishing'); }