Skip to content

Commit 67dfa06

Browse files
committed
Add OIDC stuff to deploy to npm now
1 parent 157a506 commit 67dfa06

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/_deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# https://docs.npmjs.com/trusted-publishers#github-actions-configuration
2+
13
name: Deploy package
24

35
on:
@@ -6,9 +8,10 @@ on:
68
package-name:
79
required: true
810
type: string
9-
secrets:
10-
NPM_TOKEN:
11-
required: true
11+
12+
permissions:
13+
id-token: write # Required for OIDC
14+
contents: read
1215

1316
jobs:
1417
deploy:
@@ -24,6 +27,7 @@ jobs:
2427
with:
2528
node-version: '24.x'
2629
registry-url: 'https://registry.npmjs.org'
30+
package-manager-cache: false # never use caching in release builds
2731

2832
- name: Summary Head
2933
run: |

0 commit comments

Comments
 (0)