Skip to content

Commit 1a88fd2

Browse files
committed
Publish with provenance
1 parent 133d4b6 commit 1a88fd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
jobs:
812
publish-npm:
913
runs-on: ubuntu-latest
@@ -19,6 +23,6 @@ jobs:
1923
- run: npm version ${TAG_NAME} --git-tag-version=false
2024
env:
2125
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
26+
- run: npm whoami; npm --ignore-scripts publish --provenance
2327
env:
2428
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)