ci: fix provenance publish by removing broken npm upgrade step#82
Merged
Conversation
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.
Problem
The
v0.2.1tag triggeredpublish.yml, but thenpm publish --provenancestep failed:The
npm install -g npm@lateststep leaves the global npm in a broken state missingsigstore(the module that generates provenance attestations) — a known issue with reinstalling npm over the Node-bundled one.Fix
Remove the
Update npmstep. Node 24's bundled npm already supports OIDC trusted publishing and shipssigstoreintact, so the manual upgrade was both unnecessary and the cause of the failure.Also tidies
CHANGELOG.md:release-ithad inserted the0.2.1heading above the intro line and left the section empty — restored the intro and gave0.2.1an honest "maintenance release, no user-facing changes" note.After merge
Re-point the
v0.2.1tag to this fix commit and re-push so the corrected workflow publishes0.2.1to npm with provenance.