Skip to content

Upgrade node for publshing steps#311

Merged
jv-asana merged 1 commit into
masterfrom
johnvu-upgrade-node-for-publishing-step
Feb 6, 2026
Merged

Upgrade node for publshing steps#311
jv-asana merged 1 commit into
masterfrom
johnvu-upgrade-node-for-publishing-step

Conversation

@jv-asana
Copy link
Copy Markdown
Contributor

@jv-asana jv-asana commented Feb 6, 2026

TL;DR

Update Node.js version from 18.x to 24.x in GitHub Actions workflows and fix NPM registry URL.

What changed?

  • Updated Node.js version from 18.x to 24.x in two GitHub Actions workflow jobs
  • Fixed NPM registry URL from registry.npmjs.com to registry.npmjs.org in one of the workflow jobs

Explanation

Fix npm publish by upgrading to Node 24.x for trusted publishing support

After migrating from token-based authentication to npm trusted publishing (OIDC), the publish-to-npmjs job was failing with 404 Not Found / "Access token expired or revoked".

The root cause was that Node 18.x ships with npm ~9.x, but trusted publishing requires npm >= 11.5.1 for OIDC auto-detection. Without it, npm falls back to traditional token auth, finds an empty NODE_AUTH_TOKEN (since the AWS Secrets Manager step was removed), and fails.

Changes:

  • Upgraded node-version from 18.x to 24.x in publish-to-npmjs and publish-to-github-releases jobs (Node 24.x ships with npm 11.x which supports OIDC-based trusted publishing)
  • Fixed registry URL typo in publish-to-github-releases (registry.npmjs.com -> registry.npmjs.org)

Copy link
Copy Markdown
Contributor Author

jv-asana commented Feb 6, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jv-asana jv-asana marked this pull request as ready for review February 6, 2026 22:48
@jv-asana jv-asana merged commit d1e55a7 into master Feb 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants