Skip to content

Commit 02043cb

Browse files
authored
Merge pull request #168 from thc202/trusted-publishing
2 parents cd8b71f + b3f6ff4 commit 02043cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ on:
55
tags:
66
- v*
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v6
1317
- uses: actions/setup-node@v6
1418
with:
15-
node-version: 17
19+
node-version: 24
1620
registry-url: 'https://registry.npmjs.org'
1721
- run: npm ci
1822
- run: npm publish
19-
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.ZAPBOT_NPM_TOKEN }}

0 commit comments

Comments
 (0)