Fix npm OIDC publish: restore registry-url, clear token, use Node 22 (#10961)

* Remove beta release workflow and simplify stable release

Beta release is no longer used. Remove the workflow and simplify the
stable release to only support direct releases with a required version
input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix npm OIDC: restore registry-url, clear NODE_AUTH_TOKEN, use Node 22

Previous fix removed registry-url entirely, causing ENEEDAUTH (no auth
at all). The correct approach: keep registry-url so npm knows the
endpoint, but clear NODE_AUTH_TOKEN at publish time so npm falls back
to OIDC. Also bump to Node 22 which ships with npm OIDC support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nate Sesti 2026-03-01 15:48:07 -08:00 • committed by GitHub
parent e24ce48c24
commit 3a9c5feecf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Update npm for OIDC trusted publishing
run: npm install -g npm@latest
@ -67,6 +68,8 @@ jobs:
- name: Publish to npm
working-directory: extensions/cli
env:
NODE_AUTH_TOKEN: ""
run: |
npm publish --tag latest --provenance
echo "Published version: ${{ inputs.stable_version }}"