Skip to content

Commit 6658c93

Browse files
authored
Setup NPMJS trusted publishers (#518)
Get an ID token to authenticate the github CI runner as a trusted publisher for the package
1 parent 67b632d commit 6658c93

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- v[0-9]+.[0-9]+.[0-9]+
77

8+
# Getting an ID token is required for NPMJS trusted publishers
9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
12+
813
env:
914
CI: true
1015
jobs:
@@ -20,6 +25,4 @@ jobs:
2025
cache: "npm"
2126

2227
- run: npm ci
23-
- run: npm publish --access public
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.INRUPT_NPM_TOKEN }}
28+
- run: npm publish

0 commit comments

Comments
 (0)