Skip to content

Commit 5e64df3

Browse files
committed
ci: use trusted publisher for npm publish [skip ci]
1 parent e06c5f4 commit 5e64df3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
with:
2424
node-version: 'lts/*'
2525
registry-url: 'https://registry.npmjs.org'
26+
# Ensure npm 11.5.1 or later is installed
27+
- name: Update npm
28+
run: npm install -g npm@latest
2629
- run: pnpm install
2730
- run: pnpm publish --no-git-checks
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)