Skip to content

Commit 54a8384

Browse files
committed
ci: use Node 24 in release for npm 11 OIDC trusted publishing
Node 24 bundles npm 11.13.0 (>= 11.5.1 required for OIDC trusted publishing), so the separate `npm install -g npm@latest` step is no longer needed.
1 parent 8575e80 commit 54a8384

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ jobs:
106106
- name: Setup Node.js
107107
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
108108
with:
109-
node-version: '22'
110-
111-
- name: Update npm (OIDC trusted publishing needs npm >= 11.5.1)
112-
run: npm install -g npm@latest
109+
# Node 24 bundles npm >= 11.5.1, required for OIDC trusted publishing.
110+
node-version: '24'
113111

114112
- name: Determine npm dist-tag
115113
id: dist-tag

0 commit comments

Comments
 (0)