fix(ci): propagate per-package publish failures in ci:publish - #499
fix(ci): propagate per-package publish failures in ci:publish#499karim-en wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Greptile SummaryThe PR updates the Confidence Score: 5/5The PR appears safe to merge. The added failure branch correctly terminates the publish script when packing, publishing, cleanup, or package metadata processing fails, while successful and already-published package paths continue unchanged. Reviews (1): Last reviewed commit: "fix(ci): propagate per-package publish f..." | Re-trigger Greptile |
Pull request overviewThis PR fixes a silent-failure bug in the root Changes:
Reviewed changesPer-file summary
FindingsI traced the exit-code semantics for each path and the fix is correct:
It also correctly stops Non-blocking (suggestion):
✅ Approved |
Summary
The
ci:publishscript iterates overpackages/*and publishes each in a subshell. Previously, per-package failures were silently swallowed because the subshell's exit code was not propagated out of theforloop — the step's exit code was determined bychangeset tagat the very end.The last release (Version Packages #498) showed this:
@omni-bridge/aptos@0.16.0,@omni-bridge/hypercore@0.16.0, and@omni-bridge/sdk@0.16.0all got404 Not Found - PUTfrom npm (OIDC trusted publisher not configured for these new package names), yet the workflow reported success.Change
Add
|| exit 1after the per-package subshell so the first failing publish aborts the loop and the workflow fails visibly.Test plan
🤖 Generated with Claude Code