Run npm publish with Node 24 / npm 11.5 for trusted publish support (#57269)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57269

Trusted publish support requires `npm` CLI version >=11.5.1 ([docs](https://docs.npmjs.com/trusted-publishers)), which is bundled with Node 24.

This bumps the Node version for just those jobs that call `npm publish`.

Changelog: [Internal]

Reviewed By: fabriziocucci

Differential Revision: D109009971

fbshipit-source-id: 6e7f412c6da0e5e5749a29e789f8c2e67610d7b0
This commit is contained in:
Rob Hogan
2026-06-18 04:13:34 -07:00
committed by meta-codesync[bot]
parent 45b13a1013
commit 65bdf26083
2 changed files with 2 additions and 0 deletions
@@ -42,6 +42,7 @@ runs:
- name: Setup node.js
uses: ./.github/actions/setup-node
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
uses: ./.github/actions/yarn-install
+1
View File
@@ -203,6 +203,7 @@ jobs:
- name: Setup node.js
uses: ./.github/actions/setup-node
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
# TEMPORARY DEBUG: print the OIDC token claims npm Trusted Publishing
# matches against. A 404 from the OIDC exchange means these claims don't