From 0a115b7314933dddc6dbccec871ac3c2127bec93 Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Thu, 29 Oct 2026 12:33:51 -0700 Subject: [PATCH] chore(ci): publish to npm with trusted publishing Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ab78e8dd..495fc31f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,11 +40,10 @@ jobs: - name: npm install run: npm i --prefer-offline --no-audit - # publish runs build for us via a prepublishOnly script + # publish runs build for us via a prepublishOnly script. + # auth uses npm trusted publishing (OIDC), which needs id-token: write. - name: npm release run: npm publish --tag next - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Check if this is a pre-release run: echo "IS_PRE_RELEASE=$(npx -p not-prerelease is-prerelease && echo "true" || echo "false")" >> $GITHUB_OUTPUT