Skip to content

Commit 11a6f73

Browse files
authored
chore: prepare for trusted publishing and provenance (#84)
Allows token-less publishing. See https://docs.npmjs.com/trusted-publishers
1 parent faee8a2 commit 11a6f73

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release
22

33
permissions:
44
contents: write
5+
id-token: write
56

67
on:
78
workflow_dispatch:
@@ -14,7 +15,7 @@ jobs:
1415
- uses: actions/checkout@v3
1516
- uses: actions/setup-node@v3
1617
with:
17-
node-version: 20
18+
node-version: 24
1819
registry-url: https://registry.npmjs.org/
1920
- name: run tests
2021
run: |
@@ -35,6 +36,4 @@ jobs:
3536
with:
3637
tag: 'v${{ steps.package-version.outputs.current-version }}'
3738
body: '${{ steps.parse-changelog.outputs.body }}'
38-
- run: npm publish --access public
39-
env:
40-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
39+
- run: npm publish --access public --provenance

0 commit comments

Comments
 (0)