mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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.*.*'
|
- 'v1.*.*'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -27,5 +27,3 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
run: npm publish --provenance --access public
|
run: npm publish --provenance --access public
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user