From 65bdf260833b5192a6428f62c50c2bbddf0fc6ab Mon Sep 17 00:00:00 2001 From: Rob Hogan Date: Thu, 18 Jun 2026 04:13:34 -0700 Subject: [PATCH] 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 --- .github/actions/build-npm-package/action.yml | 1 + .github/workflows/publish-npm.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/actions/build-npm-package/action.yml b/.github/actions/build-npm-package/action.yml index 3947642c23c..2c5dd61a7d6 100644 --- a/.github/actions/build-npm-package/action.yml +++ b/.github/actions/build-npm-package/action.yml @@ -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 diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 3b405cd1726..e62c85ea09d 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -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