Skip to content

chore: bump Node to v24.15.0 for npm OIDC trusted publishing#430

Merged
tylerjroach merged 1 commit into
masterfrom
chore/bump-node-for-npm-oidc
Jun 15, 2026
Merged

chore: bump Node to v24.15.0 for npm OIDC trusted publishing#430
tylerjroach merged 1 commit into
masterfrom
chore/bump-node-for-npm-oidc

Conversation

@tylerjroach

Copy link
Copy Markdown
Contributor

Summary

  • Bumps .nvmrc from 1824.15.0 so the release workflow runs on a Node that ships an npm CLI new enough (≥ 11.5.1) for OIDC trusted publishing.

Why

The v3.4.0 publish failed with:

npm error code E404
npm error 404 Not Found - PUT https://registry.npmjs.org/mixpanel-react-native
npm error 404 'mixpanel-react-native@3.4.0' is not in this registry.

This is the classic symptom of npm publish --provenance against npm trusted publishing when the npm CLI is too old to complete the OIDC exchange. release-npm.yml reads node-version-file: .nvmrc, so 18 was loading npm 10.x.

Mirrors the same fix applied in mixpanel-react-native-session-replay (16a78159).

CI (node.js.yml) hardcodes [18.x] separately and is unaffected by this change.

After merging

To retry the v3.4.0 publish, the existing v3.4.0 tag needs to be deleted and re-pushed from the new master commit so it satisfies the release-npm.yml ancestor-of-master check.

Test plan

  • Publish workflow run completes successfully on next tag push

The release-npm.yml workflow uses `node-version-file: .nvmrc` and
publishes with `--provenance` via npm trusted publishing. npm OIDC
trusted publishing requires npm CLI >= 11.5.1, which only ships with
Node 24.x. Node 18 ships with npm 10.x, which causes the publish to
fail with a 404 on PUT to the registry (as seen in v3.4.0 publish run
27569198051). Mirrors the fix applied in mixpanel-react-native-session-replay
(commit 16a78159).
@tylerjroach tylerjroach requested review from a team and tdumitrescu June 15, 2026 19:51
@tylerjroach tylerjroach merged commit d4a5e0a into master Jun 15, 2026
9 checks passed
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