@catladder/pipeline 3.48.0 → 4.0.1

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.
Files changed (95) hide show
  1. package/dist/build/index.d.ts +2 -2
  2. package/dist/build/node/buildJob.d.ts +3 -3
  3. package/dist/build/node/buildJob.js +185 -26
  4. package/dist/build/node/cache.d.ts +3 -3
  5. package/dist/build/node/cache.js +199 -36
  6. package/dist/build/node/index.d.ts +3 -3
  7. package/dist/build/node/index.js +151 -3
  8. package/dist/build/node/meteor.d.ts +1 -1
  9. package/dist/build/node/meteor.js +162 -27
  10. package/dist/build/node/testJob.d.ts +1 -1
  11. package/dist/build/node/testJob.js +174 -49
  12. package/dist/build/node/yarn.d.ts +2 -2
  13. package/dist/build/node/yarn.js +168 -21
  14. package/dist/constants.js +1 -1
  15. package/dist/context/createComponentContext.js +10 -12
  16. package/dist/context/createWorkspaceContext.js +29 -34
  17. package/dist/deploy/custom/deployJob.d.ts +1 -1
  18. package/dist/deploy/custom/deployJob.js +147 -23
  19. package/dist/deploy/index.d.ts +1 -1
  20. package/dist/pipeline/createAllJobs.js +30 -14
  21. package/dist/pipeline/createJobsForComponent.d.ts +1 -1
  22. package/dist/pipeline/createJobsForComponent.js +128 -4
  23. package/dist/pipeline/createJobsForWorkspace.d.ts +1 -1
  24. package/dist/pipeline/createJobsForWorkspace.js +127 -2
  25. package/dist/pipeline/yarn/yarnUtils.js +61 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/dist/types/context.d.ts +3 -3
  28. package/examples/__snapshots__/automatic-releases.test.ts.snap +9 -13
  29. package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +9 -13
  30. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +9 -13
  31. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +9 -13
  32. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +9 -13
  33. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +9 -13
  34. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +9 -13
  35. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +9 -13
  36. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +9 -13
  37. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +9 -13
  38. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +9 -13
  39. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +9 -13
  40. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +9 -13
  41. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +9 -13
  42. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +9 -13
  43. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +9 -13
  44. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +9 -13
  45. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +9 -13
  46. package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +9 -13
  47. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +9 -13
  48. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +9 -13
  49. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +9 -13
  50. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +9 -13
  51. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +18 -30
  52. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +14 -22
  53. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +9 -13
  54. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +9 -13
  55. package/examples/__snapshots__/cloud-run-worker-pool.test.ts.snap +9 -13
  56. package/examples/__snapshots__/custom-deploy.test.ts.snap +9 -13
  57. package/examples/__snapshots__/custom-docker-file.test.ts.snap +9 -13
  58. package/examples/__snapshots__/custom-envs.test.ts.snap +14 -22
  59. package/examples/__snapshots__/custom-verify-job.test.ts.snap +9 -13
  60. package/examples/__snapshots__/git-submodule.test.ts.snap +9 -13
  61. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +9 -13
  62. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +9 -13
  63. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +14 -22
  64. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +9 -13
  65. package/examples/__snapshots__/local-dot-env.test.ts.snap +9 -13
  66. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +9 -13
  67. package/examples/__snapshots__/modify-generated-files.test.ts.snap +9 -13
  68. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +9 -13
  69. package/examples/__snapshots__/multiline-var.test.ts.snap +18 -30
  70. package/examples/__snapshots__/native-app.test.ts.snap +14 -22
  71. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +9 -13
  72. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +9 -13
  73. package/examples/__snapshots__/override-secrets.test.ts.snap +9 -13
  74. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +18 -30
  75. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +14 -22
  76. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +9 -13
  77. package/examples/__snapshots__/workspace-api-www.test.ts.snap +9 -13
  78. package/package.json +1 -1
  79. package/src/build/index.ts +6 -2
  80. package/src/build/node/buildJob.ts +26 -17
  81. package/src/build/node/cache.ts +18 -15
  82. package/src/build/node/index.ts +17 -9
  83. package/src/build/node/meteor.ts +16 -11
  84. package/src/build/node/testJob.ts +10 -6
  85. package/src/build/node/yarn.ts +10 -8
  86. package/src/context/createComponentContext.ts +6 -3
  87. package/src/context/createWorkspaceContext.ts +1 -1
  88. package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +3 -1
  89. package/src/deploy/custom/deployJob.ts +3 -3
  90. package/src/deploy/index.ts +1 -1
  91. package/src/pipeline/createAllJobs.ts +9 -7
  92. package/src/pipeline/createJobsForComponent.ts +6 -6
  93. package/src/pipeline/createJobsForWorkspace.ts +3 -3
  94. package/src/pipeline/yarn/yarnUtils.ts +34 -0
  95. package/src/types/context.ts +3 -3
@@ -156,7 +156,7 @@ before_script:
156
156
  - app/.yarn
157
157
  - key: app-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - app/node_modules
161
161
  - app/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - app/.yarn
198
198
  - key: app-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - app/node_modules
202
- - app/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - app-yarn
545
543
  - key: app-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - app/node_modules
549
547
  - app/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - app-yarn
590
588
  - key: app-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - app/node_modules
594
- - app/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - app-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -622,7 +620,7 @@ before_script:
622
620
  - api-yarn
623
621
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
624
622
  policy: pull-push
625
- paths:
623
+ paths: &a3
626
624
  - api/node_modules
627
625
  - api/.yarn/install-state.gz
628
626
  fallback_keys:
@@ -667,9 +665,7 @@ before_script:
667
665
  - api-yarn
668
666
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
669
667
  policy: pull-push
670
- paths:
671
- - api/node_modules
672
- - api/.yarn/install-state.gz
668
+ paths: *a3
673
669
  fallback_keys:
674
670
  - api-node-modules
675
671
  rules:
@@ -1771,13 +1767,13 @@ create release:
1771
1767
  after_script:
1772
1768
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1773
1769
  rules:
1774
- - &a2
1770
+ - &a4
1775
1771
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1776
1772
  when: never
1777
- - &a3
1773
+ - &a5
1778
1774
  if: $CI_PIPELINE_SOURCE == "trigger"
1779
1775
  when: never
1780
- - &a4
1776
+ - &a6
1781
1777
  if: $CI_PIPELINE_SOURCE == "schedule"
1782
1778
  when: never
1783
1779
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1792,9 +1788,9 @@ create release:
1792
1788
  after_script:
1793
1789
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1794
1790
  rules:
1795
- - *a2
1796
- - *a3
1797
1791
  - *a4
1792
+ - *a5
1793
+ - *a6
1798
1794
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1799
1795
  when: manual
1800
1796
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - packages/db1/.yarn
157
157
  - key: packagesdb1-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - packages/db1/node_modules
161
161
  - packages/db1/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - packages/db1/.yarn
198
198
  - key: packagesdb1-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - packages/db1/node_modules
202
- - packages/db1/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -594,7 +592,7 @@ before_script:
594
592
  - packagesdb1-yarn
595
593
  - key: packagesdb1-node-modules-mr$CI_MERGE_REQUEST_IID
596
594
  policy: pull-push
597
- paths:
595
+ paths: &a3
598
596
  - packages/db1/node_modules
599
597
  - packages/db1/.yarn/install-state.gz
600
598
  fallback_keys:
@@ -639,9 +637,7 @@ before_script:
639
637
  - packagesdb1-yarn
640
638
  - key: packagesdb1-node-modules-mr$CI_MERGE_REQUEST_IID
641
639
  policy: pull-push
642
- paths:
643
- - packages/db1/node_modules
644
- - packages/db1/.yarn/install-state.gz
640
+ paths: *a3
645
641
  fallback_keys:
646
642
  - packagesdb1-node-modules
647
643
  rules:
@@ -1703,7 +1699,7 @@ before_script:
1703
1699
  - packages/db2/.yarn
1704
1700
  - key: packagesdb2-node-modules
1705
1701
  policy: pull-push
1706
- paths:
1702
+ paths: &a4
1707
1703
  - packages/db2/node_modules
1708
1704
  - packages/db2/.yarn/install-state.gz
1709
1705
  rules:
@@ -1744,9 +1740,7 @@ before_script:
1744
1740
  - packages/db2/.yarn
1745
1741
  - key: packagesdb2-node-modules
1746
1742
  policy: pull-push
1747
- paths:
1748
- - packages/db2/node_modules
1749
- - packages/db2/.yarn/install-state.gz
1743
+ paths: *a4
1750
1744
  rules:
1751
1745
  - when: never
1752
1746
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -2141,7 +2135,7 @@ before_script:
2141
2135
  - packagesdb2-yarn
2142
2136
  - key: packagesdb2-node-modules-mr$CI_MERGE_REQUEST_IID
2143
2137
  policy: pull-push
2144
- paths:
2138
+ paths: &a5
2145
2139
  - packages/db2/node_modules
2146
2140
  - packages/db2/.yarn/install-state.gz
2147
2141
  fallback_keys:
@@ -2186,9 +2180,7 @@ before_script:
2186
2180
  - packagesdb2-yarn
2187
2181
  - key: packagesdb2-node-modules-mr$CI_MERGE_REQUEST_IID
2188
2182
  policy: pull-push
2189
- paths:
2190
- - packages/db2/node_modules
2191
- - packages/db2/.yarn/install-state.gz
2183
+ paths: *a5
2192
2184
  fallback_keys:
2193
2185
  - packagesdb2-node-modules
2194
2186
  rules:
@@ -3250,7 +3242,7 @@ before_script:
3250
3242
  - api/.yarn
3251
3243
  - key: api-node-modules
3252
3244
  policy: pull-push
3253
- paths:
3245
+ paths: &a6
3254
3246
  - api/node_modules
3255
3247
  - api/.yarn/install-state.gz
3256
3248
  rules:
@@ -3291,9 +3283,7 @@ before_script:
3291
3283
  - api/.yarn
3292
3284
  - key: api-node-modules
3293
3285
  policy: pull-push
3294
- paths:
3295
- - api/node_modules
3296
- - api/.yarn/install-state.gz
3286
+ paths: *a6
3297
3287
  rules:
3298
3288
  - when: never
3299
3289
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -3677,7 +3667,7 @@ before_script:
3677
3667
  - api-yarn
3678
3668
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
3679
3669
  policy: pull-push
3680
- paths:
3670
+ paths: &a7
3681
3671
  - api/node_modules
3682
3672
  - api/.yarn/install-state.gz
3683
3673
  fallback_keys:
@@ -3722,9 +3712,7 @@ before_script:
3722
3712
  - api-yarn
3723
3713
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
3724
3714
  policy: pull-push
3725
- paths:
3726
- - api/node_modules
3727
- - api/.yarn/install-state.gz
3715
+ paths: *a7
3728
3716
  fallback_keys:
3729
3717
  - api-node-modules
3730
3718
  rules:
@@ -4709,13 +4697,13 @@ create release:
4709
4697
  after_script:
4710
4698
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
4711
4699
  rules:
4712
- - &a2
4700
+ - &a8
4713
4701
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
4714
4702
  when: never
4715
- - &a3
4703
+ - &a9
4716
4704
  if: $CI_PIPELINE_SOURCE == "trigger"
4717
4705
  when: never
4718
- - &a4
4706
+ - &a10
4719
4707
  if: $CI_PIPELINE_SOURCE == "schedule"
4720
4708
  when: never
4721
4709
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -4730,9 +4718,9 @@ create release:
4730
4718
  after_script:
4731
4719
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
4732
4720
  rules:
4733
- - *a2
4734
- - *a3
4735
- - *a4
4721
+ - *a8
4722
+ - *a9
4723
+ - *a10
4736
4724
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
4737
4725
  when: manual
4738
4726
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -578,7 +576,7 @@ before_script:
578
576
  - api-yarn
579
577
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
580
578
  policy: pull-push
581
- paths:
579
+ paths: &a3
582
580
  - api/node_modules
583
581
  - api/.yarn/install-state.gz
584
582
  fallback_keys:
@@ -623,9 +621,7 @@ before_script:
623
621
  - api-yarn
624
622
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
625
623
  policy: pull-push
626
- paths:
627
- - api/node_modules
628
- - api/.yarn/install-state.gz
624
+ paths: *a3
629
625
  fallback_keys:
630
626
  - api-node-modules
631
627
  rules:
@@ -1639,7 +1635,7 @@ before_script:
1639
1635
  - api/.yarn
1640
1636
  - key: api-node-modules
1641
1637
  policy: pull-push
1642
- paths:
1638
+ paths: &a4
1643
1639
  - api/node_modules
1644
1640
  - api/.yarn/install-state.gz
1645
1641
  rules:
@@ -1680,9 +1676,7 @@ before_script:
1680
1676
  - api/.yarn
1681
1677
  - key: api-node-modules
1682
1678
  policy: pull-push
1683
- paths:
1684
- - api/node_modules
1685
- - api/.yarn/install-state.gz
1679
+ paths: *a4
1686
1680
  rules:
1687
1681
  - when: never
1688
1682
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -2061,7 +2055,7 @@ before_script:
2061
2055
  - api-yarn
2062
2056
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
2063
2057
  policy: pull-push
2064
- paths:
2058
+ paths: &a5
2065
2059
  - api/node_modules
2066
2060
  - api/.yarn/install-state.gz
2067
2061
  fallback_keys:
@@ -2106,9 +2100,7 @@ before_script:
2106
2100
  - api-yarn
2107
2101
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
2108
2102
  policy: pull-push
2109
- paths:
2110
- - api/node_modules
2111
- - api/.yarn/install-state.gz
2103
+ paths: *a5
2112
2104
  fallback_keys:
2113
2105
  - api-node-modules
2114
2106
  rules:
@@ -3078,13 +3070,13 @@ create release:
3078
3070
  after_script:
3079
3071
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
3080
3072
  rules:
3081
- - &a2
3073
+ - &a6
3082
3074
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
3083
3075
  when: never
3084
- - &a3
3076
+ - &a7
3085
3077
  if: $CI_PIPELINE_SOURCE == "trigger"
3086
3078
  when: never
3087
- - &a4
3079
+ - &a8
3088
3080
  if: $CI_PIPELINE_SOURCE == "schedule"
3089
3081
  when: never
3090
3082
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -3099,9 +3091,9 @@ create release:
3099
3091
  after_script:
3100
3092
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
3101
3093
  rules:
3102
- - *a2
3103
- - *a3
3104
- - *a4
3094
+ - *a6
3095
+ - *a7
3096
+ - *a8
3105
3097
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
3106
3098
  when: manual
3107
3099
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -654,7 +652,7 @@ before_script:
654
652
  - api-yarn
655
653
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
656
654
  policy: pull-push
657
- paths:
655
+ paths: &a3
658
656
  - api/node_modules
659
657
  - api/.yarn/install-state.gz
660
658
  fallback_keys:
@@ -699,9 +697,7 @@ before_script:
699
697
  - api-yarn
700
698
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
701
699
  policy: pull-push
702
- paths:
703
- - api/node_modules
704
- - api/.yarn/install-state.gz
700
+ paths: *a3
705
701
  fallback_keys:
706
702
  - api-node-modules
707
703
  rules:
@@ -1877,13 +1873,13 @@ create release:
1877
1873
  after_script:
1878
1874
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1879
1875
  rules:
1880
- - &a2
1876
+ - &a4
1881
1877
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1882
1878
  when: never
1883
- - &a3
1879
+ - &a5
1884
1880
  if: $CI_PIPELINE_SOURCE == "trigger"
1885
1881
  when: never
1886
- - &a4
1882
+ - &a6
1887
1883
  if: $CI_PIPELINE_SOURCE == "schedule"
1888
1884
  when: never
1889
1885
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1898,9 +1894,9 @@ create release:
1898
1894
  after_script:
1899
1895
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1900
1896
  rules:
1901
- - *a2
1902
- - *a3
1903
1897
  - *a4
1898
+ - *a5
1899
+ - *a6
1904
1900
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1905
1901
  when: manual
1906
1902
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -546,7 +544,7 @@ before_script:
546
544
  - api-yarn
547
545
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
548
546
  policy: pull-push
549
- paths:
547
+ paths: &a3
550
548
  - api/node_modules
551
549
  - api/.yarn/install-state.gz
552
550
  fallback_keys:
@@ -591,9 +589,7 @@ before_script:
591
589
  - api-yarn
592
590
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
593
591
  policy: pull-push
594
- paths:
595
- - api/node_modules
596
- - api/.yarn/install-state.gz
592
+ paths: *a3
597
593
  fallback_keys:
598
594
  - api-node-modules
599
595
  rules:
@@ -1462,13 +1458,13 @@ create release:
1462
1458
  after_script:
1463
1459
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1464
1460
  rules:
1465
- - &a2
1461
+ - &a4
1466
1462
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1467
1463
  when: never
1468
- - &a3
1464
+ - &a5
1469
1465
  if: $CI_PIPELINE_SOURCE == "trigger"
1470
1466
  when: never
1471
- - &a4
1467
+ - &a6
1472
1468
  if: $CI_PIPELINE_SOURCE == "schedule"
1473
1469
  when: never
1474
1470
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1483,9 +1479,9 @@ create release:
1483
1479
  after_script:
1484
1480
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1485
1481
  rules:
1486
- - *a2
1487
- - *a3
1488
1482
  - *a4
1483
+ - *a5
1484
+ - *a6
1489
1485
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1490
1486
  when: manual
1491
1487
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -546,7 +544,7 @@ before_script:
546
544
  - api-yarn
547
545
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
548
546
  policy: pull-push
549
- paths:
547
+ paths: &a3
550
548
  - api/node_modules
551
549
  - api/.yarn/install-state.gz
552
550
  fallback_keys:
@@ -591,9 +589,7 @@ before_script:
591
589
  - api-yarn
592
590
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
593
591
  policy: pull-push
594
- paths:
595
- - api/node_modules
596
- - api/.yarn/install-state.gz
592
+ paths: *a3
597
593
  fallback_keys:
598
594
  - api-node-modules
599
595
  rules:
@@ -1462,13 +1458,13 @@ create release:
1462
1458
  after_script:
1463
1459
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1464
1460
  rules:
1465
- - &a2
1461
+ - &a4
1466
1462
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1467
1463
  when: never
1468
- - &a3
1464
+ - &a5
1469
1465
  if: $CI_PIPELINE_SOURCE == "trigger"
1470
1466
  when: never
1471
- - &a4
1467
+ - &a6
1472
1468
  if: $CI_PIPELINE_SOURCE == "schedule"
1473
1469
  when: never
1474
1470
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1483,9 +1479,9 @@ create release:
1483
1479
  after_script:
1484
1480
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1485
1481
  rules:
1486
- - *a2
1487
- - *a3
1488
1482
  - *a4
1483
+ - *a5
1484
+ - *a6
1489
1485
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1490
1486
  when: manual
1491
1487
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - www/.yarn
157
157
  - key: www-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - www/node_modules
161
161
  - www/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - www/.yarn
198
198
  - key: www-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - www/node_modules
202
- - www/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -454,7 +452,7 @@ before_script:
454
452
  - www-yarn
455
453
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
456
454
  policy: pull-push
457
- paths:
455
+ paths: &a3
458
456
  - www/node_modules
459
457
  - www/.yarn/install-state.gz
460
458
  fallback_keys:
@@ -499,9 +497,7 @@ before_script:
499
497
  - www-yarn
500
498
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
501
499
  policy: pull-push
502
- paths:
503
- - www/node_modules
504
- - www/.yarn/install-state.gz
500
+ paths: *a3
505
501
  fallback_keys:
506
502
  - www-node-modules
507
503
  rules:
@@ -1119,13 +1115,13 @@ create release:
1119
1115
  after_script:
1120
1116
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1121
1117
  rules:
1122
- - &a2
1118
+ - &a4
1123
1119
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1124
1120
  when: never
1125
- - &a3
1121
+ - &a5
1126
1122
  if: $CI_PIPELINE_SOURCE == "trigger"
1127
1123
  when: never
1128
- - &a4
1124
+ - &a6
1129
1125
  if: $CI_PIPELINE_SOURCE == "schedule"
1130
1126
  when: never
1131
1127
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1140,9 +1136,9 @@ create release:
1140
1136
  after_script:
1141
1137
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1142
1138
  rules:
1143
- - *a2
1144
- - *a3
1145
1139
  - *a4
1140
+ - *a5
1141
+ - *a6
1146
1142
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1147
1143
  when: manual
1148
1144
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/