mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +08:00
feat(ci): enable provenance (#13901)
This commit is contained in:
parent
c886ba44b1
commit
dc6224d274
6
.github/workflows/publish-npm.yml
vendored
6
.github/workflows/publish-npm.yml
vendored
@ -49,6 +49,9 @@ jobs:
|
||||
publish:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@ -69,6 +72,9 @@ jobs:
|
||||
- name: Gen npmrc
|
||||
run: echo "//registry.npmjs.com/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" >> ./.npmrc
|
||||
|
||||
- name: Update npm
|
||||
run: npm install npm@latest -g
|
||||
|
||||
- name: Build&publish
|
||||
run: sh ./scripts/publish.sh
|
||||
env:
|
||||
|
Loading…
Reference in New Issue
Block a user