mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-04-28 06:59:37 +00:00
Merge pull request #87 from AgentSeal/fix/npm-version-for-oidc
fix(ci): upgrade npm to 11.5.1+ for OIDC trusted publishing
This commit is contained in:
commit
679363a25c
1 changed files with 7 additions and 0 deletions
7
.github/workflows/publish-npm.yml
vendored
7
.github/workflows/publish-npm.yml
vendored
|
|
@ -28,6 +28,13 @@ jobs:
|
|||
node-version: '22'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Upgrade npm for trusted publishing
|
||||
# Node 22 ships with npm 10.x; npm OIDC trusted publishing requires
|
||||
# npm 11.5.1+. Without this, the publish step silently falls back
|
||||
# to the empty NODE_AUTH_TOKEN written by setup-node and the
|
||||
# registry returns 404.
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- name: Verify tag matches package.json
|
||||
run: |
|
||||
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue