mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
feat(ci): enable provenance (#13799)
This commit is contained in:
parent
40b607f9ac
commit
b4927b0d86
6
.github/workflows/publish-npm-nightly.yml
vendored
6
.github/workflows/publish-npm-nightly.yml
vendored
@ -49,6 +49,9 @@ jobs:
|
||||
publish:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
if: ${{ github.repository_owner == 'element-plus' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -70,6 +73,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: Set Nightly
|
||||
run: sh ./scripts/nightly.sh
|
||||
|
||||
|
@ -8,7 +8,7 @@ pnpm update:version
|
||||
pnpm build
|
||||
|
||||
cd dist/element-plus
|
||||
npm publish
|
||||
npm publish --provenance
|
||||
cd -
|
||||
|
||||
cd internal/eslint-config
|
||||
|
Loading…
Reference in New Issue
Block a user