Skip to content

Commit 4b5aab4

Browse files
committed
fix(workflow): use trusted publisher instead of deprecated classic token
1 parent d18939a commit 4b5aab4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ jobs:
2323
node-version: '20.x'
2424
registry-url: 'https://registry.npmjs.org'
2525

26+
- name: update npm # https://docs.npmjs.com/trusted-publishers
27+
run: npm install -g npm@latest
28+
2629
- name: setup playwright for tests
2730
run: npx playwright install --with-deps && npx playwright install msedge && npx playwright install chrome
2831

2932
- name: build, test and release sqlite-wasm
30-
run: cd sqlite-wasm && npm run deploy
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: cd sqlite-wasm && npm run deploy

0 commit comments

Comments
 (0)