ci: fix OIDC publish on Node 20 and allow manual re-run - #125
Merged
Merged
Conversation
`npm install -g npm@latest` now resolves to npm 12, which requires Node 22.22+/24.15+ and failed the v5.5.1 publish on the Node 20 runner. Pin npm to the 11 line (>= 11.5.1 is enough for trusted publishing) and run on Node 24. Add workflow_dispatch so a failed publish can be re-run from master without cutting a new tag. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Summary
The v5.5.1 publish (run) failed because
npm install -g npm@latestnow resolves to npm 12, which requires Node 22.22+ or 24.15+ and refuses to install on the Node 20 runner. The GitHub release exists but 5.5.1 never reached npm.npm@11(trusted publishing needs >= 11.5.1; 11.x installs fine everywhere).workflow_dispatchso the publish can be re-run frommaster.After merging
Dispatch the Publish workflow on
masteronce.package.jsonon master is already 5.5.1, so that run publishes 5.5.1 via OIDC. No new tag or release needed.The
ci:prefix keeps this out of the changelog and does not trigger a release PR.🤖 Generated with Claude Code