Skip to content

Commit 97bfb7c

Browse files
authored
Migrate to NPM trusted publishing
1 parent 023822f commit 97bfb7c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yaml

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

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v3
1317
- uses: actions/setup-node@v3
1418
with:
15-
node-version: '22.x'
19+
node-version: '22'
1620
registry-url: 'https://registry.npmjs.org'
1721
- run: npm ci
1822
- run: npm run build
1923
- run: npm publish --access public
20-
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)