mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-31 18:16:09 +00:00
Merge pull request #89 from AgentSeal/fix/node-24-for-oidc
fix(ci): use Node 24 for npm OIDC trusted publishing
This commit is contained in:
commit
ec130037f5
1 changed files with 7 additions and 8 deletions
15
.github/workflows/publish-npm.yml
vendored
15
.github/workflows/publish-npm.yml
vendored
|
|
@ -25,16 +25,15 @@ jobs:
|
|||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
# Node 24 (LTS) ships with npm 11.x, which supports OIDC trusted
|
||||
# publishing natively. Node 22 on GitHub hosted runners currently
|
||||
# pins to a broken npm 10.9.7 (runner-images#13883) and any
|
||||
# self-upgrade from within that toolcache crashes on a missing
|
||||
# promise-retry module, so bumping the runtime is the cleanest
|
||||
# fix.
|
||||
node-version: '24'
|
||||
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