Skip to content

Commit bdd6f1d

Browse files
authored
Publish to npm with trusted publishing
1 parent 171546b commit bdd6f1d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

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

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

1216
steps:
1317
- uses: actions/checkout@v2
14-
- name: Use Node.js 16.14.0
18+
- name: Use Node.js 24.12.0
1519
uses: actions/setup-node@v1
1620
with:
17-
node-version: 16.14.0
21+
node-version: 24.12.0
1822
registry-url: "https://registry.npmjs.org"
1923
- run: npm ci
2024
- run: npm run build
2125
- run: npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)