Skip to content

Commit 9bd28e7

Browse files
ktamas77claude
andcommitted
ci: upgrade npm to latest in publish job for Trusted Publisher OIDC
The npm 10.x that ships with Node 20 doesn't support Trusted Publisher OIDC auth (requires npm 11.5.1+). Bump to Node 22 and explicitly install npm@latest before publishing. The previous run produced a misleading 404 from the registry because npm returns 404 (not 403) when OIDC auth fails on an existing package. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3f92381 commit 9bd28e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ jobs:
3434
ref: ${{ needs.release-please.outputs.tag_name }}
3535
- uses: actions/setup-node@v4
3636
with:
37-
node-version: '20.x'
37+
node-version: '22.x'
3838
registry-url: 'https://registry.npmjs.org'
3939
cache: npm
40+
- run: npm install -g npm@latest
4041
- run: npm ci
4142
- run: npm run lint
4243
- run: npm run typecheck

0 commit comments

Comments
 (0)