Repository navigation
fix(release): reset working tree between publish retries - #5272
Closed
robert-hebel-sb wants to merge 1 commit into
Closed
robert-hebel-sb wants to merge 1 commit into
robert-hebel-sb wants to merge 1 commit into
Conversation
lerna leaves rewritten package.json files behind when publishing fails and then aborts the next attempt with EUNCOMMIT. Restore the tree before each retry and commit the provenance override locally before the fallback publish. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
|
Superseded by the combined release fix PR. |
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.
Follow-up to #5271, which was merged before this commit was pushed.
Problem
In run 39600096876 attempt 1 failed with a Sigstore 409. Attempts 2-5 then failed immediately with
EUNCOMMIT Working tree has uncommitted changes: lerna rewritespackage.jsonfiles while publishing and does not restore them on failure, then refuses to run on a dirty tree. The retries never reached npm.Changes
git checkout -- .after each failed attempt so retries start from a clean tree.provenance: falseoverride locally (CI only, not pushed) before the fallback publish, since the edit would otherwise trigger the sameEUNCOMMIT.Notes
Untested in CI. Re-run the release after merging;
from-packagepublishes only missing packages.🤖 Generated with Claude Code