ci: bump release workflow to Node 24#5
Merged
stevensacks merged 2 commits intomainfrom Apr 27, 2026
Merged
Conversation
Drops the npm self-upgrade step. Node 22.22.2's bundled npm 10 has a self-upgrade regression (Cannot find module 'promise-retry' during arborist rebuild) that prevents installing a Trusted-Publishing-capable npm at runtime, even with --force. Node 24 ships npm 11+ natively which already has the OIDC token exchange path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
# Conflicts: # .github/workflows/release.yml
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
Switches the release workflow from Node 22 to Node 24 and removes the now-unnecessary npm self-upgrade step.
Why
Node 22.22.2's bundled npm 10 has a self-upgrade regression — even with `--force`, `npm install -g npm@latest` fails:
```
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'
```
We need npm ≥11.5.1 for Trusted Publishing's OIDC token exchange. Node 24 ships npm 11+ as the default, no upgrade needed.
The package's runtime requirement (`engines.node: >=22.19.0`) is unaffected — tsup still emits with target `node22`, only the CI runtime is on a newer Node.
🤖 Generated with Claude Code