mirror of
https://github.com/axios/axios.git
synced 2026-04-11 14:21:59 +08:00
fix(ci): use OIDC for npm publish instead of token auth (#10619)
* fix(ci): use OIDC for npm publish instead of token auth * Change permissions from write to read for contents --------- Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
parent
a5881813d3
commit
ebf3036932
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
- 'v1.*.*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
@ -27,5 +27,3 @@ jobs:
|
||||
run: npm run build
|
||||
- name: Publish to NPM
|
||||
run: npm publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user