ci: use npm Trusted Publisher OIDC for authentication

This commit is contained in:
yiling
2026-06-12 16:29:43 +08:00
parent ed02ea1317
commit 008d913220
+1 -2
View File
@@ -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