fix: use Node 24 for npm 11+ (required by Trusted Publishers)#39
Merged
fix: use Node 24 for npm 11+ (required by Trusted Publishers)#39
Conversation
Node.js 24 LTS ships with npm 11.6.2, meeting the npm 11.5.1+ requirement for OIDC Trusted Publishers.
Greptile SummaryThis PR upgrades the Node.js version from 22 to 24 in the release workflow to fix a failed release. Node.js 24 includes npm 11.6.2, which meets the npm 11.5.1+ requirement for OIDC-based Trusted Publishers (introduced in PR #37). Key Changes:
Impact:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Release as GitHub Release
participant Workflow as Release Workflow
participant Setup as Environment Setup
participant Build as Build Process
participant NPM as NPM Registry
Release->>Workflow: Trigger (release published)
Workflow->>Setup: Checkout code
Setup->>Setup: Install pnpm 10
Setup->>Setup: Setup Node 24 (npm 11.6.2)
Setup->>Setup: Configure npm registry
Setup->>Build: pnpm install
Build->>Build: pnpm run build
alt Regular Release
Build->>NPM: pnpm publish --tag latest --provenance
NPM->>NPM: Verify OIDC token (requires npm 11.5.1+)
NPM->>NPM: Generate provenance attestation
NPM-->>Workflow: ✓ Published with provenance
else Pre-release
Build->>NPM: pnpm publish --tag next --provenance
NPM->>NPM: Verify OIDC token (requires npm 11.5.1+)
NPM->>NPM: Generate provenance attestation
NPM-->>Workflow: ✓ Published with provenance
end
|
gcarvelli
approved these changes
Dec 18, 2025
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
Why
The previous release failed because npm 10.9.x (bundled with Node 22) doesn't support OIDC authentication for Trusted Publishers.