mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 18:36:52 +00:00
ci: use npm Trusted Publisher OIDC for authentication
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user