Skip to content

Commit

Permalink
feat(ci): enable provenance (element-plus#13901)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Aug 8, 2023
1 parent c886ba4 commit dc6224d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
publish:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -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:
Expand Down

0 comments on commit dc6224d

Please sign in to comment.