Skip to content

Commit 3881703

Browse files
committed
Add npm provenance on publish
1 parent 825f384 commit 3881703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"publish-npm": {
2020
"needs": "build",
2121
"runs-on": "ubuntu-latest",
22+
"permissions": { "id-token": "write" },
2223
"steps": [
2324
{ "uses": "actions/[email protected]" },
2425
{
@@ -30,7 +31,7 @@
3031
},
3132
{ "run": "npm ci" },
3233
{
33-
"run": "npm publish",
34+
"run": "npm publish --provenance",
3435
"env": {
3536
"NODE_AUTH_TOKEN": "${{secrets.npm_token}}"
3637
}

0 commit comments

Comments
 (0)