Skip to content

Commit bd609e3

Browse files
committed
ci: upgrade ci job
1 parent dad75d8 commit bd609e3

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,25 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
node_version: ['12', '14', '16', '18', '19']
15+
node_version: ['12', '14', '16', '18', '20']
1616
os: [ubuntu-latest]
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v3
25+
2026
- name: Use Node.js ${{ matrix.node_version }}
21-
uses: actions/setup-node@v1
27+
uses: actions/setup-node@v4
2228
with:
2329
node-version: ${{ matrix.node_version }}
30+
cache: pnpm
2431

25-
- name: npm install, build and test
32+
- name: Install, build and test
2633
run: |
27-
npm install
28-
npm run build --if-present
29-
npm test
34+
pnpm install
35+
pnpm run build --if-present
36+
pnpm test

0 commit comments

Comments
 (0)