feat(ci): enable provenance (#13799)

This commit is contained in:
btea 2023-08-07 19:30:58 +08:00 committed by GitHub
parent 40b607f9ac
commit b4927b0d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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
if: ${{ github.repository_owner == 'element-plus' }} if: ${{ github.repository_owner == 'element-plus' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -70,6 +73,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: Set Nightly - name: Set Nightly
run: sh ./scripts/nightly.sh run: sh ./scripts/nightly.sh

View File

@ -8,7 +8,7 @@ pnpm update:version
pnpm build pnpm build
cd dist/element-plus cd dist/element-plus
npm publish npm publish --provenance
cd - cd -
cd internal/eslint-config cd internal/eslint-config