Skip to content

Commit 11d7986

Browse files
committed
try to fix ci
1 parent 91a3d11 commit 11d7986

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/nodejs.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
os: [ubuntu-latest]
26-
node-version: [lts/*]
26+
node-version: ["lts/*"]
2727

2828
runs-on: ${{ matrix.os }}
2929

@@ -32,15 +32,16 @@ jobs:
3232
cancel-in-progress: true
3333

3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 0
3838

3939
- name: Use Node.js ${{ matrix.node-version }}
40-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v4
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343
cache: "yarn"
44+
cache-dependency-path: "yarn.lock"
4445

4546
- name: Install dependencies
4647
run: yarn --frozen-lockfile
@@ -54,7 +55,7 @@ jobs:
5455
strategy:
5556
matrix:
5657
os: [ubuntu-latest, windows-latest, macos-latest]
57-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]
58+
node-version: ["10", "12", "14", "16", "18", "20"]
5859
webpack-version: [latest]
5960

6061
runs-on: ${{ matrix.os }}
@@ -68,13 +69,14 @@ jobs:
6869
if: matrix.os == 'windows-latest'
6970
run: git config --global core.autocrlf input
7071

71-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v4
7273

7374
- name: Use Node.js ${{ matrix.node-version }}
74-
uses: actions/setup-node@v3
75+
uses: actions/setup-node@v4
7576
with:
76-
node-version: ${{ matrix.node-version }}
77+
node-version: "${{ matrix.node-version }}"
7778
cache: "yarn"
79+
cache-dependency-path: "yarn.lock"
7880

7981
- name: Install dependencies
8082
run: yarn --frozen-lockfile

0 commit comments

Comments
 (0)