Skip to content

Commit fde18f1

Browse files
committed
Upgrade npm before publish for OIDC trusted publishing
The npm version bundled with GitHub Actions runners doesn't support OIDC-based trusted publishing, causing a misleading 404 on publish. npm >= 11.5.1 is required for the OIDC token exchange to work.
1 parent 38dc212 commit fde18f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release-typescript.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ jobs:
132132
cache: 'npm'
133133
cache-dependency-path: typescript/package-lock.json
134134

135+
- name: Upgrade npm for OIDC trusted publishing
136+
run: npm install -g npm@latest
137+
135138
- name: Install dependencies
136139
run: npm ci
137140

0 commit comments

Comments
 (0)