Skip to content

Commit fd5e309

Browse files
Upgrade npm to support OIDC Trusted Publishing (#231)
npm v10.8.2 (bundled with Node 20.x) predates Trusted Publishing support. npm CLI v11.5.1+ is required for OIDC authentication with --provenance flag. Evidence: CI publish failed with ENEEDAUTH despite id-token: write and correct workflow setup. npm fell back to token auth and found none. Add explicit npm upgrade step before publish to ensure OIDC works.
1 parent 563f4ab commit fd5e309

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
cache: pnpm
3030
- name: Install dependencies
3131
run: pnpm install --frozen-lockfile
32+
- name: Upgrade npm for OIDC support
33+
run: npm install -g npm@latest
3234
- name: Create Release Pull Request or Publish
3335
id: changesets
3436
uses: changesets/action@v1

0 commit comments

Comments
 (0)