Skip to content

Commit c9d7d0a

Browse files
nam-hleclaude
andcommitted
fix: use Node.js 24 for npm trusted publishing (requires npm >= 11.5.1)
npm OIDC trusted publishing requires npm >= 11.5.1 which ships with Node.js 24. The build step still uses Node 22; only the publish step switches to Node 24 to get the required npm version. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1d8ba3b commit c9d7d0a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,16 @@ jobs:
3535
- name: Build
3636
run: nadle build
3737

38-
- name: Setup npm for trusted publishing
38+
- name: Setup Node.js 24 for trusted publishing
3939
if: ${{ !startsWith(github.ref_name, 'vscode-extension/') }}
4040
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4141
with:
42+
node-version: 24
4243
registry-url: https://registry.npmjs.org
4344

4445
- name: Publish to npm
4546
if: ${{ !startsWith(github.ref_name, 'vscode-extension/') }}
46-
run: |
47-
npm config delete //registry.npmjs.org/:_authToken
48-
npm publish --provenance --access public
47+
run: npm publish --provenance --access public
4948
working-directory: packages/${{ steps.parse-tag.outputs.package }}
5049

5150
- name: Publish VS Code Extension

0 commit comments

Comments
 (0)