mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +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:
|
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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user