Repository navigation
fix(publish-preview-oidc): continue publishing when a package fails - #344
Merged
Merged
Conversation
`yarn workspaces foreach` stops starting new publishes after the first failure, so one broken package blocked every package after it. Loop over the public workspaces instead, log a warning for each failed publish, and carry on with the rest.
Mrtenz
marked this pull request as ready for review
November 19, 2026 09:52
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a6dfe2. Configure here.
The publish step now records each package as published or failed. The "Generate preview build message" step reads those lists instead of looking up every workspace again. Failed packages are listed with a link to the workflow run, and the message no longer says builds were published when none were.
cryptodev-2s
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The monorepo preview publish step used
yarn workspaces foreach --no-private --all exec yarn npm publish --tag preview. If one package failed to publish,foreachwould not start the remaining publishes, so one broken package stopped every package after it from getting a preview build.This PR replaces the
foreachcall with a loop overyarn workspaces list --no-private --json. Each package is published from its own directory in a subshell. When a publish fails, the step logs a::warning::annotation with the package name and continues with the next package. The output for each package is wrapped in a log group so the logs stay readable.Note
Low Risk
CI-only change to preview publish orchestration and PR messaging; no runtime app or auth logic.
Overview
The monorepo preview publish step in
publish-preview-oidc.ymlno longer usesyarn workspaces foreach … yarn npm publish, which stopped the whole run on the first failure. It now loops workspaces fromyarn workspaces list, publishes each package in its directory, records successes and failures under$RUNNER_TEMP, logs a warning on failure, and keeps going.The preview build message for monorepos is built from those recorded lists instead of re-deriving every package version from the repo. The comment/summary shows only what actually published, says when nothing published, and adds a failed-packages block with a link to the workflow run when any publish failed.
Reviewed by Cursor Bugbot for commit 8ea7c77. Bugbot is set up for automated code reviews on this repo. Configure here.