@catladder/pipeline 3.34.1 → 3.34.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/node/cache.js +6 -3
- package/dist/constants.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/automatic-releases.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +24 -0
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +16 -0
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +8 -0
- package/examples/__snapshots__/custom-deploy.test.ts.snap +8 -0
- package/examples/__snapshots__/custom-docker-file.test.ts.snap +8 -0
- package/examples/__snapshots__/custom-envs.test.ts.snap +14 -0
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +8 -0
- package/examples/__snapshots__/git-submodule.test.ts.snap +8 -0
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +8 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +8 -0
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +16 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +8 -0
- package/examples/__snapshots__/local-dot-env.test.ts.snap +8 -0
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +8 -0
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +8 -0
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +8 -0
- package/examples/__snapshots__/multiline-var.test.ts.snap +24 -0
- package/examples/__snapshots__/native-app.test.ts.snap +16 -0
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +8 -0
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +8 -0
- package/examples/__snapshots__/override-secrets.test.ts.snap +8 -0
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +24 -0
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +16 -0
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +8 -0
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +8 -0
- package/package.json +1 -1
- package/src/build/node/cache.ts +16 -1
|
@@ -158,6 +158,7 @@ before_script:
|
|
|
158
158
|
policy: pull-push
|
|
159
159
|
paths:
|
|
160
160
|
- api/node_modules
|
|
161
|
+
- api/.yarn/install-state.gz
|
|
161
162
|
rules:
|
|
162
163
|
- when: never
|
|
163
164
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -198,6 +199,7 @@ before_script:
|
|
|
198
199
|
policy: pull-push
|
|
199
200
|
paths:
|
|
200
201
|
- api/node_modules
|
|
202
|
+
- api/.yarn/install-state.gz
|
|
201
203
|
rules:
|
|
202
204
|
- when: never
|
|
203
205
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -262,6 +264,7 @@ before_script:
|
|
|
262
264
|
policy: pull-push
|
|
263
265
|
paths:
|
|
264
266
|
- api/node_modules
|
|
267
|
+
- api/.yarn/install-state.gz
|
|
265
268
|
artifacts:
|
|
266
269
|
paths:
|
|
267
270
|
- api/__build_info.json
|
|
@@ -409,6 +412,7 @@ before_script:
|
|
|
409
412
|
policy: pull-push
|
|
410
413
|
paths:
|
|
411
414
|
- api/node_modules
|
|
415
|
+
- api/.yarn/install-state.gz
|
|
412
416
|
fallback_keys:
|
|
413
417
|
- api-node-modules
|
|
414
418
|
rules:
|
|
@@ -453,6 +457,7 @@ before_script:
|
|
|
453
457
|
policy: pull-push
|
|
454
458
|
paths:
|
|
455
459
|
- api/node_modules
|
|
460
|
+
- api/.yarn/install-state.gz
|
|
456
461
|
fallback_keys:
|
|
457
462
|
- api-node-modules
|
|
458
463
|
rules:
|
|
@@ -521,6 +526,7 @@ before_script:
|
|
|
521
526
|
policy: pull-push
|
|
522
527
|
paths:
|
|
523
528
|
- api/node_modules
|
|
529
|
+
- api/.yarn/install-state.gz
|
|
524
530
|
fallback_keys:
|
|
525
531
|
- api-node-modules
|
|
526
532
|
artifacts:
|
|
@@ -671,6 +677,7 @@ before_script:
|
|
|
671
677
|
policy: pull-push
|
|
672
678
|
paths:
|
|
673
679
|
- api/node_modules
|
|
680
|
+
- api/.yarn/install-state.gz
|
|
674
681
|
artifacts:
|
|
675
682
|
paths:
|
|
676
683
|
- api/__build_info.json
|
|
@@ -813,6 +820,7 @@ before_script:
|
|
|
813
820
|
policy: pull-push
|
|
814
821
|
paths:
|
|
815
822
|
- api/node_modules
|
|
823
|
+
- api/.yarn/install-state.gz
|
|
816
824
|
artifacts:
|
|
817
825
|
paths:
|
|
818
826
|
- api/__build_info.json
|
|
@@ -952,6 +960,7 @@ before_script:
|
|
|
952
960
|
policy: pull-push
|
|
953
961
|
paths:
|
|
954
962
|
- www/node_modules
|
|
963
|
+
- www/.yarn/install-state.gz
|
|
955
964
|
rules:
|
|
956
965
|
- when: never
|
|
957
966
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -992,6 +1001,7 @@ before_script:
|
|
|
992
1001
|
policy: pull-push
|
|
993
1002
|
paths:
|
|
994
1003
|
- www/node_modules
|
|
1004
|
+
- www/.yarn/install-state.gz
|
|
995
1005
|
rules:
|
|
996
1006
|
- when: never
|
|
997
1007
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -1056,6 +1066,7 @@ before_script:
|
|
|
1056
1066
|
policy: pull-push
|
|
1057
1067
|
paths:
|
|
1058
1068
|
- www/node_modules
|
|
1069
|
+
- www/.yarn/install-state.gz
|
|
1059
1070
|
artifacts:
|
|
1060
1071
|
paths:
|
|
1061
1072
|
- www/__build_info.json
|
|
@@ -1205,6 +1216,7 @@ before_script:
|
|
|
1205
1216
|
policy: pull-push
|
|
1206
1217
|
paths:
|
|
1207
1218
|
- www/node_modules
|
|
1219
|
+
- www/.yarn/install-state.gz
|
|
1208
1220
|
fallback_keys:
|
|
1209
1221
|
- www-node-modules
|
|
1210
1222
|
rules:
|
|
@@ -1249,6 +1261,7 @@ before_script:
|
|
|
1249
1261
|
policy: pull-push
|
|
1250
1262
|
paths:
|
|
1251
1263
|
- www/node_modules
|
|
1264
|
+
- www/.yarn/install-state.gz
|
|
1252
1265
|
fallback_keys:
|
|
1253
1266
|
- www-node-modules
|
|
1254
1267
|
rules:
|
|
@@ -1317,6 +1330,7 @@ before_script:
|
|
|
1317
1330
|
policy: pull-push
|
|
1318
1331
|
paths:
|
|
1319
1332
|
- www/node_modules
|
|
1333
|
+
- www/.yarn/install-state.gz
|
|
1320
1334
|
fallback_keys:
|
|
1321
1335
|
- www-node-modules
|
|
1322
1336
|
artifacts:
|
|
@@ -1469,6 +1483,7 @@ before_script:
|
|
|
1469
1483
|
policy: pull-push
|
|
1470
1484
|
paths:
|
|
1471
1485
|
- www/node_modules
|
|
1486
|
+
- www/.yarn/install-state.gz
|
|
1472
1487
|
artifacts:
|
|
1473
1488
|
paths:
|
|
1474
1489
|
- www/__build_info.json
|
|
@@ -1613,6 +1628,7 @@ before_script:
|
|
|
1613
1628
|
policy: pull-push
|
|
1614
1629
|
paths:
|
|
1615
1630
|
- www/node_modules
|
|
1631
|
+
- www/.yarn/install-state.gz
|
|
1616
1632
|
artifacts:
|
|
1617
1633
|
paths:
|
|
1618
1634
|
- www/__build_info.json
|
|
@@ -158,6 +158,7 @@ before_script:
|
|
|
158
158
|
policy: pull-push
|
|
159
159
|
paths:
|
|
160
160
|
- node_modules
|
|
161
|
+
- .yarn/install-state.gz
|
|
161
162
|
rules:
|
|
162
163
|
- when: never
|
|
163
164
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -198,6 +199,7 @@ before_script:
|
|
|
198
199
|
policy: pull-push
|
|
199
200
|
paths:
|
|
200
201
|
- node_modules
|
|
202
|
+
- .yarn/install-state.gz
|
|
201
203
|
rules:
|
|
202
204
|
- when: never
|
|
203
205
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -272,6 +274,7 @@ before_script:
|
|
|
272
274
|
policy: pull-push
|
|
273
275
|
paths:
|
|
274
276
|
- node_modules
|
|
277
|
+
- .yarn/install-state.gz
|
|
275
278
|
- key: myWorkspace-default
|
|
276
279
|
policy: pull-push
|
|
277
280
|
paths:
|
|
@@ -355,6 +358,7 @@ before_script:
|
|
|
355
358
|
policy: pull-push
|
|
356
359
|
paths:
|
|
357
360
|
- node_modules
|
|
361
|
+
- .yarn/install-state.gz
|
|
358
362
|
fallback_keys:
|
|
359
363
|
- .-node-modules
|
|
360
364
|
rules:
|
|
@@ -399,6 +403,7 @@ before_script:
|
|
|
399
403
|
policy: pull-push
|
|
400
404
|
paths:
|
|
401
405
|
- node_modules
|
|
406
|
+
- .yarn/install-state.gz
|
|
402
407
|
fallback_keys:
|
|
403
408
|
- .-node-modules
|
|
404
409
|
rules:
|
|
@@ -477,6 +482,7 @@ before_script:
|
|
|
477
482
|
policy: pull-push
|
|
478
483
|
paths:
|
|
479
484
|
- node_modules
|
|
485
|
+
- .yarn/install-state.gz
|
|
480
486
|
fallback_keys:
|
|
481
487
|
- .-node-modules
|
|
482
488
|
- key: myWorkspace-default-mr$CI_MERGE_REQUEST_IID
|
|
@@ -575,6 +581,7 @@ before_script:
|
|
|
575
581
|
policy: pull-push
|
|
576
582
|
paths:
|
|
577
583
|
- node_modules
|
|
584
|
+
- .yarn/install-state.gz
|
|
578
585
|
- key: myWorkspace-default
|
|
579
586
|
policy: pull-push
|
|
580
587
|
paths:
|
|
@@ -669,6 +676,7 @@ before_script:
|
|
|
669
676
|
policy: pull-push
|
|
670
677
|
paths:
|
|
671
678
|
- node_modules
|
|
679
|
+
- .yarn/install-state.gz
|
|
672
680
|
- key: myWorkspace-default
|
|
673
681
|
policy: pull-push
|
|
674
682
|
paths:
|
|
@@ -158,6 +158,7 @@ before_script:
|
|
|
158
158
|
policy: pull-push
|
|
159
159
|
paths:
|
|
160
160
|
- node_modules
|
|
161
|
+
- .yarn/install-state.gz
|
|
161
162
|
rules:
|
|
162
163
|
- when: never
|
|
163
164
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -198,6 +199,7 @@ before_script:
|
|
|
198
199
|
policy: pull-push
|
|
199
200
|
paths:
|
|
200
201
|
- node_modules
|
|
202
|
+
- .yarn/install-state.gz
|
|
201
203
|
rules:
|
|
202
204
|
- when: never
|
|
203
205
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -272,6 +274,7 @@ before_script:
|
|
|
272
274
|
policy: pull-push
|
|
273
275
|
paths:
|
|
274
276
|
- node_modules
|
|
277
|
+
- .yarn/install-state.gz
|
|
275
278
|
- key: myWorkspace-default
|
|
276
279
|
policy: pull-push
|
|
277
280
|
paths:
|
|
@@ -353,6 +356,7 @@ before_script:
|
|
|
353
356
|
policy: pull-push
|
|
354
357
|
paths:
|
|
355
358
|
- node_modules
|
|
359
|
+
- .yarn/install-state.gz
|
|
356
360
|
fallback_keys:
|
|
357
361
|
- .-node-modules
|
|
358
362
|
rules:
|
|
@@ -397,6 +401,7 @@ before_script:
|
|
|
397
401
|
policy: pull-push
|
|
398
402
|
paths:
|
|
399
403
|
- node_modules
|
|
404
|
+
- .yarn/install-state.gz
|
|
400
405
|
fallback_keys:
|
|
401
406
|
- .-node-modules
|
|
402
407
|
rules:
|
|
@@ -475,6 +480,7 @@ before_script:
|
|
|
475
480
|
policy: pull-push
|
|
476
481
|
paths:
|
|
477
482
|
- node_modules
|
|
483
|
+
- .yarn/install-state.gz
|
|
478
484
|
fallback_keys:
|
|
479
485
|
- .-node-modules
|
|
480
486
|
- key: myWorkspace-default-mr$CI_MERGE_REQUEST_IID
|
|
@@ -571,6 +577,7 @@ before_script:
|
|
|
571
577
|
policy: pull-push
|
|
572
578
|
paths:
|
|
573
579
|
- node_modules
|
|
580
|
+
- .yarn/install-state.gz
|
|
574
581
|
- key: myWorkspace-default
|
|
575
582
|
policy: pull-push
|
|
576
583
|
paths:
|
|
@@ -663,6 +670,7 @@ before_script:
|
|
|
663
670
|
policy: pull-push
|
|
664
671
|
paths:
|
|
665
672
|
- node_modules
|
|
673
|
+
- .yarn/install-state.gz
|
|
666
674
|
- key: myWorkspace-default
|
|
667
675
|
policy: pull-push
|
|
668
676
|
paths:
|
package/package.json
CHANGED
package/src/build/node/cache.ts
CHANGED
|
@@ -31,6 +31,8 @@ export const getNodeModulesCache = (
|
|
|
31
31
|
context.type === "component" &&
|
|
32
32
|
context.packageManagerInfo.componentIsInWorkspace;
|
|
33
33
|
|
|
34
|
+
const { isClassic } = context.packageManagerInfo;
|
|
35
|
+
|
|
34
36
|
// We intentionally do not use the contents of yarn.lock as a cache key, as yarn install should always guarantee that the files are updated, but it can still use part of the cache if not all packages are up-to-date.
|
|
35
37
|
// It would slow down all pipelines whenever one adds a new dependency as it will need to download all node_modules again.
|
|
36
38
|
return [
|
|
@@ -50,8 +52,21 @@ export const getNodeModulesCache = (
|
|
|
50
52
|
...(context.packageManagerInfo.workspaces.map((w) =>
|
|
51
53
|
join(w.location, "node_modules"),
|
|
52
54
|
) ?? []),
|
|
55
|
+
...(!isClassic
|
|
56
|
+
? [
|
|
57
|
+
".yarn/install-state.gz",
|
|
58
|
+
...(context.packageManagerInfo.workspaces.map((w) =>
|
|
59
|
+
join(w.location, ".yarn/install-state.gz"),
|
|
60
|
+
) ?? []),
|
|
61
|
+
]
|
|
62
|
+
: []),
|
|
53
63
|
])
|
|
54
|
-
: [
|
|
64
|
+
: [
|
|
65
|
+
join(context.build.dir, "node_modules"),
|
|
66
|
+
...(!isClassic
|
|
67
|
+
? [join(context.build.dir, ".yarn/install-state.gz")]
|
|
68
|
+
: []),
|
|
69
|
+
]),
|
|
55
70
|
],
|
|
56
71
|
},
|
|
57
72
|
];
|