Skip to content

Commit 2507b5d

Browse files
committed
ci: update npm publish
* use npm trusted publisher for authentication
1 parent 4605d83 commit 2507b5d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ on:
77

88
jobs:
99
Publish:
10-
runs-on: ubuntu-24.04
10+
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Setup Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
19-
node-version: '18.x'
20-
registry-url: 'https://registry.npmjs.org'
19+
node-version: "18.x"
20+
registry-url: "https://registry.npmjs.org"
2121

2222
- name: Install and Build
2323
run: |
@@ -26,5 +26,3 @@ jobs:
2626
2727
- name: Publish on NPM
2828
run: npm publish --access public
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)