31
31
uses : actions/setup-node@v1
32
32
with :
33
33
node-version : ${{ matrix.node-version }}
34
+ cache : yarn
34
35
- name : npm install
35
- run : npm ci
36
+ run : yarn
36
37
- name : Build
37
38
run : |
38
39
./node_modules/.bin/tsc --build \
@@ -109,13 +110,9 @@ jobs:
109
110
uses : actions/setup-node@v1
110
111
with :
111
112
node-version : ${{ matrix.node-version }}
112
- - name : Cache node_modules
113
- uses : actions/cache@v1
114
- with :
115
- path : ' **/node_modules'
116
- key : ${{ runner.os }}-postgres-node_modules-${{ hashFiles('**/package-lock.json') }}
113
+ cache : yarn
117
114
- name : npm install
118
- run : npm ci
115
+ run : yarn
119
116
- name : Build
120
117
run : |
121
118
./node_modules/.bin/tsc --build packages/postgres/tsconfig.json;
@@ -147,13 +144,9 @@ jobs:
147
144
uses : actions/setup-node@v1
148
145
with :
149
146
node-version : ${{ matrix.node-version }}
150
- - name : Cache node_modules
151
- uses : actions/cache@v1
152
- with :
153
- path : ' **/node_modules'
154
- key : ${{ runner.os }}-mysql-node_modules-${{ hashFiles('**/package-lock.json') }}
147
+ cache : yarn
155
148
- name : npm install
156
- run : npm ci
149
+ run : yarn
157
150
- name : Build
158
151
run : |
159
152
./node_modules/.bin/tsc --build packages/mysql/tsconfig.json
@@ -175,13 +168,9 @@ jobs:
175
168
uses : actions/setup-node@v1
176
169
with :
177
170
node-version : ${{ matrix.node-version }}
178
- - name : Cache node_modules
179
- uses : actions/cache@v1
180
- with :
181
- path : ' **/node_modules'
182
- key : ${{ runner.os }}-sqlite-node_modules-${{ hashFiles('**/package-lock.json') }}
171
+ cache : yarn
183
172
- name : npm install
184
- run : npm ci
173
+ run : yarn
185
174
- name : Build
186
175
run : |
187
176
./node_modules/.bin/tsc --build packages/sqlite/tsconfig.json
@@ -221,13 +210,9 @@ jobs:
221
210
uses : actions/setup-node@v1
222
211
with :
223
212
node-version : ${{ matrix.node-version }}
224
- - name : Cache node_modules
225
- uses : actions/cache@v1
226
- with :
227
- path : ' **/node_modules'
228
- key : ${{ runner.os }}-mongo-node_modules-${{ hashFiles('**/package-lock.json') }}
229
- - name : npm install
230
- run : npm ci
213
+ cache : yarn
214
+ - name : yarn
215
+ run : yarn
231
216
- name : Build
232
217
run : |
233
218
./node_modules/.bin/tsc --build packages/mongo/tsconfig.json
0 commit comments