18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Checkout PR
21
- uses : actions/checkout@v3
22
- # with:
23
- # submodules: 'true'
24
- - name : Use Node.js ${{ matrix.node-version }}
25
- uses : actions/setup-node@v3
26
- with :
27
- node-version : ${{ matrix.node-version }}
21
+ uses : actions/checkout@v4
22
+ - name : 📥 Setup
23
+ uses : ./.github/actions/setup-job
28
24
- name : 📥 Monorepo install
29
25
uses : ./.github/actions/pnpm-install
30
26
@@ -59,16 +55,11 @@ jobs:
59
55
name : Lint
60
56
needs : install
61
57
runs-on : ubuntu-latest
62
-
63
58
steps :
64
59
- name : Checkout PR
65
- uses : actions/checkout@v3
66
- # with:
67
- # submodules: 'true'
68
- - name : Use Node.js ${{ matrix.node-version }}
69
- uses : actions/setup-node@v3
70
- with :
71
- node-version : ${{ matrix.node-version }}
60
+ uses : actions/checkout@v4
61
+ - name : 📥 Setup
62
+ uses : ./.github/actions/setup-job
72
63
- name : 📥 Monorepo install
73
64
uses : ./.github/actions/pnpm-install
74
65
@@ -85,15 +76,11 @@ jobs:
85
76
name : Build packages
86
77
needs : [ install ]
87
78
runs-on : ubuntu-latest
88
-
89
79
steps :
90
- - uses : actions/checkout@v3
91
- # with:
92
- # submodules: 'true'
93
- - name : Use Node.js ${{ matrix.node-version }}
94
- uses : actions/setup-node@v3
95
- with :
96
- node-version : ${{ matrix.node-version }}
80
+ - name : Checkout PR
81
+ uses : actions/checkout@v4
82
+ - name : 📥 Setup
83
+ uses : ./.github/actions/setup-job
97
84
- name : 📥 Monorepo install
98
85
uses : ./.github/actions/pnpm-install
99
86
108
95
pnpm libs:build
109
96
110
97
- name : Cache packages
111
- uses : actions/cache@v3
98
+ uses : actions/cache@v4
112
99
with :
113
100
path : packages
114
101
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -119,13 +106,10 @@ jobs:
119
106
needs : [ install, build-packages ]
120
107
runs-on : ubuntu-latest
121
108
steps :
122
- - uses : actions/checkout@v3
123
- # with:
124
- # submodules: 'true'
125
- - name : Use Node.js ${{ matrix.node-version }}
126
- uses : actions/setup-node@v3
127
- with :
128
- node-version : ${{ matrix.node-version }}
109
+ - name : Checkout PR
110
+ uses : actions/checkout@v4
111
+ - name : 📥 Setup
112
+ uses : ./.github/actions/setup-job
129
113
- name : 📥 Monorepo install
130
114
uses : ./.github/actions/pnpm-install
131
115
@@ -136,7 +120,7 @@ jobs:
136
120
pnpm --filter=@codeimage/prisma-models build
137
121
138
122
- name : Restore dist
139
- uses : actions/cache@v3
123
+ uses : actions/cache@v4
140
124
with :
141
125
path : packages
142
126
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -156,21 +140,16 @@ jobs:
156
140
needs : [ build-packages ]
157
141
if : ${{ github.head_ref != 'next' }}
158
142
runs-on : ubuntu-latest
159
-
160
143
steps :
161
144
- name : Checkout PR
162
- uses : actions/checkout@v3
163
- # with:
164
- # submodules: 'true'
165
- - name : Use Node.js ${{ matrix.node-version }}
166
- uses : actions/setup-node@v3
167
- with :
168
- node-version : ${{ matrix.node-version }}
145
+ uses : actions/checkout@v4
146
+ - name : 📥 Setup
147
+ uses : ./.github/actions/setup-job
169
148
- name : 📥 Monorepo install
170
149
uses : ./.github/actions/pnpm-install
171
150
172
151
- name : Restore dist
173
- uses : actions/cache@v3
152
+ uses : actions/cache@v4
174
153
with :
175
154
path : packages
176
155
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -208,22 +187,16 @@ jobs:
208
187
needs : [ build-packages ]
209
188
if : ${{ github.head_ref == 'next' }}
210
189
runs-on : ubuntu-latest
211
-
212
190
steps :
213
191
- name : Checkout PR
214
- uses : actions/checkout@v3
215
- with :
216
- ref : ' refs/pull/${{ github.event.number }}/merge'
217
- # submodules: 'true'
218
- - name : Use Node.js ${{ matrix.node-version }}
219
- uses : actions/setup-node@v3
220
- with :
221
- node-version : ${{ matrix.node-version }}
192
+ uses : actions/checkout@v4
193
+ - name : 📥 Setup
194
+ uses : ./.github/actions/setup-job
222
195
- name : 📥 Monorepo install
223
196
uses : ./.github/actions/pnpm-install
224
197
225
198
- name : Restore dist
226
- uses : actions/cache@v3
199
+ uses : actions/cache@v4
227
200
with :
228
201
path : packages
229
202
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -261,22 +234,16 @@ jobs:
261
234
needs : [ build-packages ]
262
235
if : (${{ needs.install.outputs.app-change == 'true' }} || ${{ needs.install.outputs.libs-change == 'true' }})
263
236
runs-on : ubuntu-latest
264
-
265
237
steps :
266
238
- name : Checkout PR
267
- uses : actions/checkout@v3
268
- with :
269
- submodules : ' true'
270
- # ref: 'refs/pull/${{ github.event.number }}/merge'
271
- - name : Use Node.js ${{ matrix.node-version }}
272
- uses : actions/setup-node@v3
273
- with :
274
- node-version : ${{ matrix.node-version }}
239
+ uses : actions/checkout@v4
240
+ - name : 📥 Setup
241
+ uses : ./.github/actions/setup-job
275
242
- name : 📥 Monorepo install
276
243
uses : ./.github/actions/pnpm-install
277
244
278
245
- name : Restore dist
279
- uses : actions/cache@v3
246
+ uses : actions/cache@v4
280
247
with :
281
248
path : packages
282
249
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -304,22 +271,16 @@ jobs:
304
271
needs : [ build-packages ]
305
272
if : (${{ needs.install.outputs.app-change == 'true' }} || ${{ needs.install.outputs.libs-change == 'true' }})
306
273
runs-on : ubuntu-latest
307
-
308
274
steps :
309
275
- name : Checkout PR
310
- uses : actions/checkout@v3
311
- with :
312
- ref : ' refs/pull/${{ github.event.number }}/merge'
313
- # submodules: 'true'
314
- - name : Use Node.js ${{ matrix.node-version }}
315
- uses : actions/setup-node@v3
316
- with :
317
- node-version : ${{ matrix.node-version }}
276
+ uses : actions/checkout@v4
277
+ - name : 📥 Setup
278
+ uses : ./.github/actions/setup-job
318
279
- name : 📥 Monorepo install
319
280
uses : ./.github/actions/pnpm-install
320
281
321
282
- name : Restore dist
322
- uses : actions/cache@v3
283
+ uses : actions/cache@v4
323
284
with :
324
285
path : packages
325
286
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -346,7 +307,7 @@ jobs:
346
307
codeimage-website-pr-{{PR_NUMBER}}.vercel.app
347
308
348
309
- name : Cache website
349
- uses : actions/cache@v3
310
+ uses : actions/cache@v4
350
311
with :
351
312
path : apps/website
352
313
key : apps-website-${{ github.run_id }}-${{ github.run_number }}
@@ -357,19 +318,14 @@ jobs:
357
318
runs-on : ubuntu-latest
358
319
steps :
359
320
- name : Checkout PR
360
- uses : actions/checkout@v3
361
- with :
362
- ref : ' refs/pull/${{ github.event.number }}/merge'
363
- # submodules: 'true'
364
- - name : Use Node.js ${{ matrix.node-version }}
365
- uses : actions/setup-node@v3
366
- with :
367
- node-version : ${{ matrix.node-version }}
321
+ uses : actions/checkout@v4
322
+ - name : 📥 Setup
323
+ uses : ./.github/actions/setup-job
368
324
- name : 📥 Monorepo install
369
325
uses : ./.github/actions/pnpm-install
370
326
371
327
- name : Restore website
372
- uses : actions/cache@v3
328
+ uses : actions/cache@v4
373
329
with :
374
330
path : apps/website
375
331
key : apps-website-${{ github.run_id }}-${{ github.run_number }}
@@ -387,13 +343,10 @@ jobs:
387
343
runs-on : ubuntu-latest
388
344
389
345
steps :
390
- - uses : actions/checkout@v3
391
- # with:
392
- # submodules: 'true'
393
- - name : Use Node.js ${{ matrix.node-version }}
394
- uses : actions/setup-node@v3
395
- with :
396
- node-version : ${{ matrix.node-version }}
346
+ - name : Checkout PR
347
+ uses : actions/checkout@v4
348
+ - name : 📥 Setup
349
+ uses : ./.github/actions/setup-job
397
350
- name : 📥 Monorepo install
398
351
uses : ./.github/actions/pnpm-install
399
352
@@ -408,7 +361,7 @@ jobs:
408
361
pnpm prepare:api:deploy
409
362
410
363
- name : Cache build
411
- uses : actions/cache@v3
364
+ uses : actions/cache@v4
412
365
with :
413
366
path : |
414
367
dist/api-bundle/**
@@ -449,14 +402,15 @@ jobs:
449
402
ALLOWED_ORIGINS : ' *'
450
403
451
404
steps :
452
- - uses : actions/checkout@v3
453
- # with:
454
- # submodules: 'true'
405
+ - name : Checkout PR
406
+ uses : actions/checkout@v4
407
+ - name : 📥 Setup
408
+ uses : ./.github/actions/setup-job
455
409
- name : 📥 Monorepo install
456
410
uses : ./.github/actions/pnpm-install
457
411
458
412
- name : Restore dist
459
- uses : actions/cache@v3
413
+ uses : actions/cache@v4
460
414
with :
461
415
path : |
462
416
packages
@@ -488,24 +442,21 @@ jobs:
488
442
]
489
443
runs-on : ubuntu-latest
490
444
steps :
491
- - uses : actions/checkout@v3
492
- # with:
493
- # submodules: 'true'
494
- - name : Use Node.js ${{ matrix.node-version }}
495
- uses : actions/setup-node@v3
496
- with :
497
- node-version : ${{ matrix.node-version }}
445
+ - name : Checkout PR
446
+ uses : actions/checkout@v4
447
+ - name : 📥 Setup
448
+ uses : ./.github/actions/setup-job
498
449
- name : 📥 Monorepo install
499
450
uses : ./.github/actions/pnpm-install
500
451
501
452
- name : Restore packages
502
- uses : actions/cache@v3
453
+ uses : actions/cache@v4
503
454
with :
504
455
path : packages
505
456
key : packages-dist-${{ github.run_id }}-${{ github.run_number }}
506
457
507
458
- name : Restore api build
508
- uses : actions/cache@v3
459
+ uses : actions/cache@v4
509
460
with :
510
461
path : |
511
462
dist/api-bundle/**
0 commit comments