Skip to content

Commit 6fe3713

Browse files
committed
1 parent 6ef9ba5 commit 6fe3713

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/node.js.yml

+14-12
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
lint:
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: "18"
19+
- run: npm i -g npm
1920
- run: npm install
2021
- run: npm run lint
2122

@@ -26,15 +27,16 @@ jobs:
2627
matrix:
2728
os: [ubuntu-latest, macos-14, windows-latest]
2829
# See https://github.com/nodejs/release#release-schedule
29-
node-version: [18.x, 20.x, 22.x]
30+
node-version: [18.x, 20.x, 22.5.1]
3031

3132
steps:
32-
- uses: actions/checkout@v4
33-
with:
34-
lfs: true
35-
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v4
37-
with:
38-
node-version: ${{ matrix.node-version }}
39-
- run: npm install
40-
- run: npm run test
33+
- uses: actions/checkout@v4
34+
with:
35+
lfs: true
36+
- name: Use Node.js ${{ matrix.node-version }}
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
- run: npm install --global npm
41+
- run: npm install
42+
- run: npm run test

0 commit comments

Comments
 (0)