Skip to content

Commit 45e222e

Browse files
committed
ci: 🎡 fix node ci version
1 parent 74c1f3e commit 45e222e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

‎.github/workflows/nodejs.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node-version: [18.x, 20.x]
11+
node-version: [20.x, 22.x]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Use Node.js ${{ matrix.node-version }}
1515
uses: actions/setup-node@v1
1616
with:
1717
node-version: ${{ matrix.node-version }}
18-
- run: npm install -g yarn
19-
- name: yarn build
18+
- run: npm install -g pnpm
19+
- name: pnpm build
2020
working-directory: .
2121
run: |
22-
yarn
23-
yarn build
22+
pnpm install
23+
pnpm build
2424
lint:
2525
runs-on: ubuntu-latest
2626
strategy:
@@ -32,12 +32,12 @@ jobs:
3232
uses: actions/setup-node@v1
3333
with:
3434
node-version: ${{ matrix.node-version }}
35-
- run: npm install -g yarn
36-
- name: yarn build
35+
- run: npm install -g pnpm
36+
- name: pnpm build
3737
working-directory: .
3838
run: |
39-
yarn
40-
yarn lint
39+
pnpm install
40+
pnpm lint
4141
test:
4242
runs-on: ubuntu-latest
4343
strategy:
@@ -49,10 +49,10 @@ jobs:
4949
uses: actions/setup-node@v1
5050
with:
5151
node-version: ${{ matrix.node-version }}
52-
- run: npm install -g yarn
53-
- name: yarn build
52+
- run: npm install -g pnpm
53+
- name: pnpm build
5454
working-directory: .
5555
run: |
56-
yarn
57-
yarn test
56+
pnpm install
57+
pnpm test
5858

0 commit comments

Comments
 (0)