Skip to content

Commit c6692ac

Browse files
committed
trusted publishing
1 parent 556158c commit c6692ac

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ on:
44
push:
55
tags: '*'
66

7+
permissions:
8+
id-token: write # Required for trusted publishing
9+
contents: read
10+
711
jobs:
812
release:
913
name: Release
1014
runs-on: ubuntu-latest
1115

1216
steps:
13-
- uses: actions/checkout@v2
14-
- name: Use Node.js 16
15-
uses: actions/setup-node@v1
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1619
with:
17-
node-version: 16
20+
node-version: 24
1821
registry-url: 'https://registry.npmjs.org'
1922
- run: npm ci
2023
- run: npm test
2124
- run: npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)