mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +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:
|
publish:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -69,6 +72,9 @@ jobs:
|
|||||||
- name: Gen npmrc
|
- name: Gen npmrc
|
||||||
run: echo "//registry.npmjs.com/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" >> ./.npmrc
|
run: echo "//registry.npmjs.com/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" >> ./.npmrc
|
||||||
|
|
||||||
|
- name: Update npm
|
||||||
|
run: npm install npm@latest -g
|
||||||
|
|
||||||
- name: Build&publish
|
- name: Build&publish
|
||||||
run: sh ./scripts/publish.sh
|
run: sh ./scripts/publish.sh
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user