Skip to content

Commit 23a1521

Browse files
authored
Update publich CI
1 parent 78d86a7 commit 23a1521

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,27 @@ on:
55
tags:
66
- v*
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
Publish:
10-
runs-on: ubuntu-24.04
14+
runs-on: ubuntu-latest
1115

1216
steps:
1317
- name: Checkout
14-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1519

1620
- name: Setup Node.js
17-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
1822
with:
19-
node-version: '18.x'
23+
node-version: '18'
2024
registry-url: 'https://registry.npmjs.org'
2125

2226
- name: Install and Build
2327
run: |
28+
npm install -g npm@latest
2429
npm ci
2530
npm run build
2631
@@ -33,5 +38,3 @@ jobs:
3338

3439
- name: Publish on NPM
3540
run: npm publish
36-
env:
37-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)