Skip to content

fix(release): use Node 24 for npm OIDC trusted publishing#59

Merged
iamladi merged 1 commit intomainfrom
fix/npm-oidc-publish
Apr 2, 2026
Merged

fix(release): use Node 24 for npm OIDC trusted publishing#59
iamladi merged 1 commit intomainfrom
fix/npm-oidc-publish

Conversation

@iamladi
Copy link
Copy Markdown
Owner

@iamladi iamladi commented Apr 2, 2026

Summary

Follow-up to #58. npm install -g npm@latest fails on Node 22 with MODULE_NOT_FOUND (npm 10.x can't self-upgrade cleanly).

  • Switch from Node 22 to Node 24 in the release workflow
  • Node 24 ships with npm 11.x which supports OIDC publish auth natively
  • Remove the broken npm install -g npm@latest step
  • Node is only used for npm publish — the project uses Bun for everything else

Test plan

  • Verify npm --version shows 11.x+ in CI logs
  • Verify npm publish succeeds via OIDC

npm 10.x (Node 22) cannot self-upgrade due to MODULE_NOT_FOUND error,
and does not support OIDC publish auth natively. Node 24 ships with
npm 11.x which supports the full trusted publishing flow.

Node is only used here for npm publish — the project itself uses Bun.
@iamladi iamladi merged commit 286ccd8 into main Apr 2, 2026
4 checks passed
@iamladi iamladi deleted the fix/npm-oidc-publish branch April 2, 2026 11:43
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