mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03: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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user