mirror of
https://github.com/lancedikson/bowser
synced 2026-02-09 17:40:09 +00:00
fix: upgrade npm before publish for OIDC trusted publisher support
npm trusted publishing requires npm CLI >= 11.5.1, but Node 20 ships with npm 10.x which doesn't support the OIDC token exchange. Adding an explicit npm upgrade step before publishing. https://claude.ai/code/session_01StxzJra1LPf3yJWvS94ZtA
This commit is contained in:
parent
2bb8caee93
commit
b4dadd4b76
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -58,5 +58,7 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- name: Update npm to latest (trusted publishing requires npm >= 11.5.1)
|
||||
run: npm install -g npm@latest
|
||||
- name: Publish to npm
|
||||
run: npm publish --provenance --access public
|
||||
Loading…
Reference in New Issue
Block a user