Skip to content

publish.yml: use Node 24 for native npm 11 OIDC support#5

Merged
deftio merged 1 commit into
mainfrom
feature/fix-publish-node24
Apr 20, 2026
Merged

publish.yml: use Node 24 for native npm 11 OIDC support#5
deftio merged 1 commit into
mainfrom
feature/fix-publish-node24

Conversation

@deftio

@deftio deftio commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Switch publish workflow from Node 22 to Node 24, which ships with npm 11.x natively
  • Remove the npm install -g npm@latest workaround (breaks on Node 22 due to module resolution changes)

Context

npm OIDC trusted publishing requires npm >=11.5.1. Node 22 ships with npm 10.x, and npm install -g npm@latest fails with Cannot find module 'promise-retry' on Node 22. Node 24 ships with npm 11.x out of the box, so no workaround is needed.

Test plan

  • CI passes (unchanged, still Node 22.x)
  • After merge, publish workflow runs with Node 24 and npm 11.x
  • npm publish succeeds via OIDC

🤖 Generated with Claude Code

Node 22 ships with npm 10.x which cannot self-upgrade to npm 11
(module resolution breakage). Node 24 ships with npm 11.x natively,
which includes OIDC trusted publishing support (requires >=11.5.1).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@deftio deftio merged commit a0ab7b7 into main Apr 20, 2026
1 check passed
@deftio deftio deleted the feature/fix-publish-node24 branch April 20, 2026 04:04
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.

1 participant