We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d11c4e commit 1c834bdCopy full SHA for 1c834bd
.github/workflows/publish.yml
@@ -4,6 +4,10 @@ on:
4
release:
5
types: [created]
6
7
+permissions:
8
+ contents: read
9
+ id-token: write # for provenance and publish access
10
+
11
jobs:
12
publish-npm:
13
runs-on: ubuntu-latest
@@ -21,6 +25,4 @@ jobs:
21
25
- run: npm version ${TAG_NAME} --git-tag-version=false
22
26
env:
23
27
TAG_NAME: ${{ github.event.release.tag_name }}
24
- - run: npm whoami; npm publish
- env:
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
28
+ - run: npm publish --provenance
0 commit comments