Skip to content

Commit b011620

Browse files
authored
Allow publish workflow to generate OIDC tokens
See https://docs.npmjs.com/trusted-publishers#github-actions-configuration
1 parent 90f3747 commit b011620

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"release": { "types": ["published"] },
55
"workflow_dispatch": {}
66
},
7+
"permissions": {
8+
"id-token": "write",
9+
"contents": "read"
10+
},
711
"jobs": {
812
"build": {
913
"runs-on": "ubuntu-latest",

0 commit comments

Comments
 (0)