Skip to content

Commit de1c692

Browse files
ci(publish): use trusted publishing
1 parent 5718b4b commit de1c692

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# reference: https://docs.npmjs.com/generating-provenance-statements
1+
# reference: https://docs.npmjs.com/trusted-publishers#for-github-actions
22

33
name: Publish
44

@@ -27,13 +27,11 @@ jobs:
2727
- name: Compile project
2828
run: bun run compile
2929

30-
- name: Use Node.js 20
31-
uses: actions/setup-node@v4
30+
- name: Use Node.js 24
31+
uses: actions/setup-node@v6
3232
with:
33-
node-version: 20
33+
node-version: 24
3434
registry-url: 'https://registry.npmjs.org'
3535

3636
- name: Publish package
37-
run: npm publish --provenance --access public
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: npm publish --access public

0 commit comments

Comments
 (0)