88 name : Prepare
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
1211 - name : Use Node.js
1312 uses : actions/setup-node@v4
1413 with :
15- node-version-file : ' .nvmrc'
16- cache : ' yarn'
14+ node-version : ' lts/*'
1715 - name : Install Yarn
1816 run : corepack enable
17+ - uses : actions/checkout@v4
18+ - name : Use Node.js and install dependencies
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : ' lts/*'
22+ cache : ' yarn'
1923 - name : Install Yarn dependencies
2024 run : yarn --immutable
2125
@@ -25,11 +29,17 @@ jobs:
2529 needs :
2630 - prepare
2731 steps :
32+ - name : Use Node.js
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : ' lts/*'
36+ - name : Install Yarn
37+ run : corepack enable
2838 - uses : actions/checkout@v4
2939 - name : Use Node.js
3040 uses : actions/setup-node@v4
3141 with :
32- node-version-file : ' .nvmrc '
42+ node-version : ' lts/* '
3343 cache : ' yarn'
3444 - run : yarn --immutable --immutable-cache
3545 - run : yarn build
@@ -47,11 +57,17 @@ jobs:
4757 needs :
4858 - prepare
4959 steps :
60+ - name : Use Node.js
61+ uses : actions/setup-node@v4
62+ with :
63+ node-version : ' lts/*'
64+ - name : Install Yarn
65+ run : corepack enable
5066 - uses : actions/checkout@v4
5167 - name : Use Node.js
5268 uses : actions/setup-node@v4
5369 with :
54- node-version-file : ' .nvmrc '
70+ node-version : ' lts/* '
5571 cache : ' yarn'
5672 - run : yarn --immutable --immutable-cache
5773 - run : yarn lint
7894 matrix :
7995 node-version : [18.x, 20.x]
8096 steps :
97+ - name : Use Node.js
98+ uses : actions/setup-node@v4
99+ with :
100+ node-version : ${{ matrix.node-version }}
101+ - name : Install Yarn
102+ run : corepack enable
81103 - uses : actions/checkout@v4
82104 - name : Use Node.js ${{ matrix.node-version }}
83105 uses : actions/setup-node@v4
@@ -103,6 +125,12 @@ jobs:
103125 matrix :
104126 node-version : [18.x, 20.x]
105127 steps :
128+ - name : Use Node.js
129+ uses : actions/setup-node@v4
130+ with :
131+ node-version : ${{ matrix.node-version }}
132+ - name : Install Yarn
133+ run : corepack enable
106134 - uses : actions/checkout@v4
107135 - name : Use Node.js ${{ matrix.node-version }}
108136 uses : actions/setup-node@v4
0 commit comments