Skip to content

Commit 45ff52f

Browse files
committed
Fix CI
1 parent 97c6330 commit 45ff52f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/publish-npm.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1418
with:
15-
node-version: 18
19+
node-version: '20'
1620
- run: npm ci
1721
- run: |
1822
bin/start-e2e-test-server.sh
@@ -42,13 +46,14 @@ jobs:
4246
runs-on: ubuntu-latest
4347
steps:
4448
- uses: actions/checkout@v3
45-
- uses: actions/setup-node@v3
49+
- uses: actions/setup-node@v4
4650
with:
47-
node-version: 16
48-
registry-url: https://registry.npmjs.org/
51+
node-version: '20'
52+
registry-url: 'https://registry.npmjs.org'
53+
# Ensure npm 11.5.1 or later is installed
54+
- name: Update npm
55+
run: npm install -g npm@latest
4956
- run: npm ci
5057
- run: npm run build --if-present
5158
- run: npm publish
52-
env:
53-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5459

0 commit comments

Comments
 (0)