Skip to content

Commit 65bdf26

Browse files
robhoganmeta-codesync[bot]
authored andcommitted
Run npm publish with Node 24 / npm 11.5 for trusted publish support (#57269)
Summary: Pull Request resolved: #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
1 parent 45b13a1 commit 65bdf26

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/actions/build-npm-package/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ runs:
4242
- name: Setup node.js
4343
uses: ./.github/actions/setup-node
4444
with:
45+
node-version: '24'
4546
registry-url: 'https://registry.npmjs.org'
4647
- name: Install dependencies
4748
uses: ./.github/actions/yarn-install

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ jobs:
203203
- name: Setup node.js
204204
uses: ./.github/actions/setup-node
205205
with:
206+
node-version: "24"
206207
registry-url: "https://registry.npmjs.org"
207208
# TEMPORARY DEBUG: print the OIDC token claims npm Trusted Publishing
208209
# matches against. A 404 from the OIDC exchange means these claims don't

0 commit comments

Comments
 (0)