Skip to content

Commit 3cb4307

Browse files
authored
chore: Configure OIDC for trusted publishing (#48)
Signed-off-by: John McBride <john@zuplo.com>
1 parent 460249f commit 3cb4307

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
release:
44
types: [published]
55

6+
permissions:
7+
id-token: write # Required for OIDC - https://docs.npmjs.com/trusted-publishers
8+
contents: read
9+
610
jobs:
711
publish:
812
runs-on: ubuntu-latest
@@ -14,16 +18,17 @@ jobs:
1418
id-token: write
1519

1620
steps:
17-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
1822
with:
1923
fetch-depth: 0
2024

21-
- uses: actions/setup-node@v4
25+
- uses: actions/setup-node@v5
2226
with:
2327
node-version: 22.x
2428
cache: npm
2529
registry-url: https://registry.npmjs.org
2630

31+
- run: npm install -g npm@latest
2732
- run: npm ci
2833
- run: npm run build
2934

0 commit comments

Comments
 (0)