From 008d91322024784a04979e4cd6a22dd0e143e64a Mon Sep 17 00:00:00 2001 From: yiling Date: Fri, 12 Jun 2026 16:29:43 +0800 Subject: [PATCH] ci: use npm Trusted Publisher OIDC for authentication --- .github/workflows/release-npm.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-npm.yaml b/.github/workflows/release-npm.yaml index 7a8cf331..7df6f118 100644 --- a/.github/workflows/release-npm.yaml +++ b/.github/workflows/release-npm.yaml @@ -23,6 +23,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + id-token: write env: RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }} SOURCE_REF: ${{ github.event.inputs.source_ref || github.event.inputs.tag || github.ref_name }} @@ -78,6 +79,4 @@ jobs: fi - name: Publish to NPM - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: bun run scripts/publish.ts