From 3a9c5feecffa9c2ea4de886b2af87d019e0f9c5c Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:48:07 -0800 Subject: [PATCH] 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 * 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 --------- Co-authored-by: Claude Opus 4.6 --- .github/workflows/stable-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml index 3bfee0726..9bdbb5802 100644 --- a/.github/workflows/stable-release.yml +++ b/.github/workflows/stable-release.yml @@ -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 }}"