Skip to content

Commit a091bcc

Browse files
committed
fix: upgrade npm to latest for OIDC trusted publishing support
Node.js 22 ships with npm v10 which has a known bug in the OIDC token exchange for trusted publishing. Upgrading to npm@latest (v11.5.1+) resolves the 'Access token expired' error.
1 parent 1a374c8 commit a091bcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ jobs:
4545
with:
4646
node-version: 22
4747
cache: pnpm
48+
registry-url: https://registry.npmjs.org
49+
50+
- name: Upgrade npm for trusted publishing
51+
run: npm install -g npm@latest
4852

4953
- name: Install dependencies
5054
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)