Skip to content

Commit dbe7121

Browse files
committed
fix: node lib build
Signed-off-by: Peefy <xpf6677@163.com>
1 parent 9e04094 commit dbe7121

File tree

1 file changed

+18
-25
lines changed

1 file changed

+18
-25
lines changed

.github/workflows/nodejs-test.yaml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ jobs:
3838

3939
- uses: pnpm/action-setup@v4
4040
with:
41-
version: 8
41+
version: 10
4242

4343
- name: Setup node
4444
uses: actions/setup-node@v6
4545
with:
46-
node-version: '18'
47-
cache: pnpm
48-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
46+
node-version: '22'
4947

5048
- name: Install dependencies
51-
run: pnpm install --no-save --frozen-lockfile
49+
run: pnpm i
5250

5351
- name: Check format
5452
run: pnpm exec prettier --check .
@@ -107,15 +105,14 @@ jobs:
107105
- uses: actions/checkout@v5
108106
- uses: pnpm/action-setup@v4
109107
with:
110-
version: 8
108+
version: 10
111109
- name: Setup node
112110
uses: actions/setup-node@v6
113111
with:
114-
node-version: '18'
115-
cache: pnpm
116-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
112+
node-version: '22'
113+
117114
- name: Install dependencies
118-
run: pnpm install --no-save --frozen-lockfile
115+
run: pnpm i
119116
- name: Build
120117
shell: bash
121118
working-directory: .
@@ -148,15 +145,14 @@ jobs:
148145
- uses: actions/checkout@v5
149146
- uses: pnpm/action-setup@v4
150147
with:
151-
version: 8
148+
version: 10
152149
- name: Setup node
153150
uses: actions/setup-node@v6
154151
with:
155-
node-version: '18'
156-
cache: pnpm
157-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
152+
node-version: '22'
153+
158154
- name: Install dependencies
159-
run: pnpm install --no-save --frozen-lockfile
155+
run: pnpm i
160156
- name: Build
161157
shell: bash
162158
run: ${{ matrix.settings.build }}
@@ -198,15 +194,14 @@ jobs:
198194
- uses: actions/checkout@v5
199195
- uses: pnpm/action-setup@v4
200196
with:
201-
version: 8
197+
version: 10
202198
- name: Setup node
203199
uses: actions/setup-node@v6
204200
with:
205-
node-version: '18'
206-
cache: pnpm
207-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
201+
node-version: '22'
202+
208203
- name: Install dependencies
209-
run: pnpm install --no-save --frozen-lockfile
204+
run: pnpm i
210205
- name: Build
211206
run: ${{ matrix.settings.build }}
212207
shell: bash
@@ -231,16 +226,14 @@ jobs:
231226
- uses: actions/checkout@v5
232227
- uses: pnpm/action-setup@v4
233228
with:
234-
version: 8
229+
version: 10
235230
- name: Setup node
236231
uses: actions/setup-node@v6
237232
with:
238-
node-version: "18"
239-
cache: pnpm
240-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
233+
node-version: "22"
241234

242235
- name: Install dependencies
243-
run: pnpm install --no-save --frozen-lockfile
236+
run: pnpm i
244237

245238
- name: Download all artifacts
246239
uses: actions/download-artifact@v6

0 commit comments

Comments
 (0)