Skip to content

Upgrade to Node 24 for npm OIDC trusted publishing#88

Merged
lpssformspree merged 3 commits into
mainfrom
fix/release-node22-oidc
Mar 16, 2026
Merged

Upgrade to Node 24 for npm OIDC trusted publishing#88
lpssformspree merged 3 commits into
mainfrom
fix/release-node22-oidc

Conversation

@lpssformspree

@lpssformspree lpssformspree commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades Node.js from 20.x to 24.x in the release workflow
  • Removes the manual OIDC token exchange step

Why Node 24

npm trusted publishing via OIDC requires npm CLI 11.5.1+, but:

  • Node 20 bundles npm v10 → OIDC not supported → ENEEDAUTH
  • Node 22 bundles npm v10 → OIDC not supported → weird 404 errors
  • Node 24 bundles npm v11 → OIDC works natively ✅

On Node 24, npm automatically detects the GitHub Actions OIDC environment and handles authentication when id-token: write is set — no manual token exchange needed.

The release workflow only installs dependencies and publishes — it does not run tests — so the Node upgrade carries no regression risk.

References

Test plan

  • Merge and verify the next release run publishes @formspree/ajax successfully

🤖 Generated with Claude Code

npm trusted publishing requires Node 22.14.0+ and npm 11.5.1+.
npm natively handles OIDC auth when id-token: write is set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Mar 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1310a1c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@formspree/ajax Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Mar 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
formspree-react-demo Ready Ready Preview, Comment Mar 6, 2026 1:05am

Request Review

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Node 22 bundles npm v10 which doesn't support npm trusted publishing.
npm 11.5.1+ is required, which ships with Node 24.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lpssformspree lpssformspree changed the title Upgrade to Node 22 for npm OIDC trusted publishing Upgrade to Node 24 for npm OIDC trusted publishing Mar 8, 2026
@lpssformspree lpssformspree merged commit 2e1d1fa into main Mar 16, 2026
4 checks passed
@lpssformspree lpssformspree deleted the fix/release-node22-oidc branch March 16, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants