Skip to content

Commit 4fa0f04

Browse files
phernandezclaude
andcommitted
fix: use Node 24 for npm OIDC trusted publishing
Trusted publishing requires npm CLI >= 11.5.1 (ships with Node 24). Node 20's npm doesn't support OIDC auth, causing ENEEDAUTH errors. Restore registry-url in setup-node (required for .npmrc setup). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8241fe4 commit 4fa0f04

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
@@ -33,7 +33,8 @@ jobs:
3333
- name: Setup Node
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: "20"
36+
node-version: "24"
37+
registry-url: "https://registry.npmjs.org"
3738

3839
- name: Install dependencies
3940
run: bun install --frozen-lockfile
@@ -75,9 +76,7 @@ jobs:
7576
git push origin "${{ steps.bump.outputs.tag }}"
7677
7778
- name: Publish to npm
78-
run: |
79-
npm config set registry https://registry.npmjs.org/
80-
npm publish --provenance --access public
79+
run: npm publish --provenance --access public
8180

8281
- name: Create GitHub release
8382
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)