@catladder/pipeline 3.19.0 → 3.20.0

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 (70) hide show
  1. package/dist/constants.js +1 -1
  2. package/dist/pipeline/createMainPipeline.js +1 -1
  3. package/dist/pipeline/gitlab/gitlabReleaseJobs.d.ts +2 -1
  4. package/dist/pipeline/gitlab/gitlabReleaseJobs.js +48 -3
  5. package/dist/rules/index.d.ts +1 -3
  6. package/dist/rules/index.js +2 -19
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/dist/types/config.d.ts +5 -0
  9. package/dist/types/release.d.ts +7 -0
  10. package/dist/types/release.js +5 -0
  11. package/examples/__snapshots__/automatic-releases.test.ts.snap +1484 -0
  12. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +0 -2
  13. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +0 -2
  14. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +0 -2
  15. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +0 -2
  16. package/examples/__snapshots__/cloud-run-llama.test.ts.snap +0 -2
  17. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +0 -2
  18. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +0 -2
  19. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +0 -2
  20. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +0 -2
  21. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +0 -2
  22. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +0 -2
  23. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +0 -2
  24. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +0 -2
  25. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +0 -2
  26. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +0 -2
  27. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +0 -2
  28. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +0 -2
  29. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +0 -2
  30. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +0 -2
  31. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +0 -2
  32. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +0 -2
  33. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +0 -2
  34. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +0 -2
  35. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +0 -2
  36. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +0 -2
  37. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +0 -2
  38. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +0 -2
  39. package/examples/__snapshots__/custom-build-job.test.ts.snap +0 -2
  40. package/examples/__snapshots__/custom-deploy.test.ts.snap +0 -2
  41. package/examples/__snapshots__/custom-envs.test.ts.snap +0 -2
  42. package/examples/__snapshots__/custom-sbom-java.test.ts.snap +0 -2
  43. package/examples/__snapshots__/custom-verify-job.test.ts.snap +0 -2
  44. package/examples/__snapshots__/git-submodule.test.ts.snap +0 -2
  45. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +0 -2
  46. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +0 -2
  47. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +0 -2
  48. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +0 -2
  49. package/examples/__snapshots__/local-dot-env.test.ts.snap +0 -2
  50. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +0 -2
  51. package/examples/__snapshots__/modify-generated-files.test.ts.snap +0 -2
  52. package/examples/__snapshots__/multiline-var.test.ts.snap +0 -2
  53. package/examples/__snapshots__/native-app.test.ts.snap +0 -2
  54. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +0 -2
  55. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +0 -2
  56. package/examples/__snapshots__/override-secrets.test.ts.snap +0 -2
  57. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +0 -2
  58. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +0 -2
  59. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +0 -2
  60. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +0 -2
  61. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +0 -2
  62. package/examples/__snapshots__/workspace-api-www.test.ts.snap +0 -2
  63. package/examples/automatic-releases.test.ts +11 -0
  64. package/examples/automatic-releases.ts +28 -0
  65. package/package.json +1 -1
  66. package/src/pipeline/createMainPipeline.ts +9 -7
  67. package/src/pipeline/gitlab/gitlabReleaseJobs.ts +37 -4
  68. package/src/rules/index.ts +0 -32
  69. package/src/types/config.ts +6 -0
  70. package/src/types/release.ts +7 -0
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -655,8 +655,6 @@ create release:
655
655
  - &a4
656
656
  if: $CI_PIPELINE_SOURCE == "schedule"
657
657
  when: never
658
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
659
- when: on_success
660
658
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
661
659
  when: manual
662
660
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1477,8 +1477,6 @@ create release:
1477
1477
  - &a4
1478
1478
  if: $CI_PIPELINE_SOURCE == "schedule"
1479
1479
  when: never
1480
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1481
- when: on_success
1482
1480
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1483
1481
  when: manual
1484
1482
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1569,8 +1569,6 @@ create release:
1569
1569
  - &a4
1570
1570
  if: $CI_PIPELINE_SOURCE == "schedule"
1571
1571
  when: never
1572
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1573
- when: on_success
1574
1572
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1575
1573
  when: manual
1576
1574
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1479,8 +1479,6 @@ create release:
1479
1479
  - &a4
1480
1480
  if: $CI_PIPELINE_SOURCE == "schedule"
1481
1481
  when: never
1482
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1483
- when: on_success
1484
1482
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1485
1483
  when: manual
1486
1484
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1529,8 +1529,6 @@ create release:
1529
1529
  - &a4
1530
1530
  if: $CI_PIPELINE_SOURCE == "schedule"
1531
1531
  when: never
1532
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1533
- when: on_success
1534
1532
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1535
1533
  when: manual
1536
1534
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1529,8 +1529,6 @@ create release:
1529
1529
  - &a4
1530
1530
  if: $CI_PIPELINE_SOURCE == "schedule"
1531
1531
  when: never
1532
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1533
- when: on_success
1534
1532
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1535
1533
  when: manual
1536
1534
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1533,8 +1533,6 @@ create release:
1533
1533
  - &a4
1534
1534
  if: $CI_PIPELINE_SOURCE == "schedule"
1535
1535
  when: never
1536
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1537
- when: on_success
1538
1536
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1539
1537
  when: manual
1540
1538
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1339,8 +1339,6 @@ create release:
1339
1339
  - &a4
1340
1340
  if: $CI_PIPELINE_SOURCE == "schedule"
1341
1341
  when: never
1342
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1343
- when: on_success
1344
1342
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1345
1343
  when: manual
1346
1344
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1551,8 +1551,6 @@ create release:
1551
1551
  - &a4
1552
1552
  if: $CI_PIPELINE_SOURCE == "schedule"
1553
1553
  when: never
1554
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1555
- when: on_success
1556
1554
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1557
1555
  when: manual
1558
1556
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1776,8 +1776,6 @@ create release:
1776
1776
  - &a4
1777
1777
  if: $CI_PIPELINE_SOURCE == "schedule"
1778
1778
  when: never
1779
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1780
- when: on_success
1781
1779
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1782
1780
  when: manual
1783
1781
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -4702,8 +4702,6 @@ create release:
4702
4702
  - &a4
4703
4703
  if: $CI_PIPELINE_SOURCE == "schedule"
4704
4704
  when: never
4705
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
4706
- when: on_success
4707
4705
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
4708
4706
  when: manual
4709
4707
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -3077,8 +3077,6 @@ create release:
3077
3077
  - &a4
3078
3078
  if: $CI_PIPELINE_SOURCE == "schedule"
3079
3079
  when: never
3080
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
3081
- when: on_success
3082
3080
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
3083
3081
  when: manual
3084
3082
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1882,8 +1882,6 @@ create release:
1882
1882
  - &a4
1883
1883
  if: $CI_PIPELINE_SOURCE == "schedule"
1884
1884
  when: never
1885
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1886
- when: on_success
1887
1885
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1888
1886
  when: manual
1889
1887
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1467,8 +1467,6 @@ create release:
1467
1467
  - &a4
1468
1468
  if: $CI_PIPELINE_SOURCE == "schedule"
1469
1469
  when: never
1470
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1471
- when: on_success
1472
1470
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1473
1471
  when: manual
1474
1472
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1328,8 +1328,6 @@ create release:
1328
1328
  - &a5
1329
1329
  if: $CI_PIPELINE_SOURCE == "schedule"
1330
1330
  when: never
1331
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1332
- when: on_success
1333
1331
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1334
1332
  when: manual
1335
1333
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1211,8 +1211,6 @@ create release:
1211
1211
  - &a4
1212
1212
  if: $CI_PIPELINE_SOURCE == "schedule"
1213
1213
  when: never
1214
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1215
- when: on_success
1216
1214
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1217
1215
  when: manual
1218
1216
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1112,8 +1112,6 @@ create release:
1112
1112
  - &a4
1113
1113
  if: $CI_PIPELINE_SOURCE == "schedule"
1114
1114
  when: never
1115
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1116
- when: on_success
1117
1115
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1118
1116
  when: manual
1119
1117
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -843,8 +843,6 @@ create release:
843
843
  - &a4
844
844
  if: $CI_PIPELINE_SOURCE == "schedule"
845
845
  when: never
846
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
847
- when: on_success
848
846
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
849
847
  when: manual
850
848
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1207,8 +1207,6 @@ create release:
1207
1207
  - &a4
1208
1208
  if: $CI_PIPELINE_SOURCE == "schedule"
1209
1209
  when: never
1210
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1211
- when: on_success
1212
1210
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1213
1211
  when: manual
1214
1212
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1681,8 +1681,6 @@ create release:
1681
1681
  - &a4
1682
1682
  if: $CI_PIPELINE_SOURCE == "schedule"
1683
1683
  when: never
1684
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1685
- when: on_success
1686
1684
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1687
1685
  when: manual
1688
1686
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1462,8 +1462,6 @@ create release:
1462
1462
  - &a4
1463
1463
  if: $CI_PIPELINE_SOURCE == "schedule"
1464
1464
  when: never
1465
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1466
- when: on_success
1467
1465
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1468
1466
  when: manual
1469
1467
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1780,8 +1780,6 @@ create release:
1780
1780
  - &a4
1781
1781
  if: $CI_PIPELINE_SOURCE == "schedule"
1782
1782
  when: never
1783
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1784
- when: on_success
1785
1783
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1786
1784
  when: manual
1787
1785
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1800,8 +1800,6 @@ create release:
1800
1800
  - &a4
1801
1801
  if: $CI_PIPELINE_SOURCE == "schedule"
1802
1802
  when: never
1803
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1804
- when: on_success
1805
1803
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1806
1804
  when: manual
1807
1805
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -3392,8 +3392,6 @@ create release:
3392
3392
  - &a4
3393
3393
  if: $CI_PIPELINE_SOURCE == "schedule"
3394
3394
  when: never
3395
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
3396
- when: on_success
3397
3395
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
3398
3396
  when: manual
3399
3397
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1904,8 +1904,6 @@ create release:
1904
1904
  - &a4
1905
1905
  if: $CI_PIPELINE_SOURCE == "schedule"
1906
1906
  when: never
1907
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1908
- when: on_success
1909
1907
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1910
1908
  when: manual
1911
1909
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1385,8 +1385,6 @@ create release:
1385
1385
  - &a4
1386
1386
  if: $CI_PIPELINE_SOURCE == "schedule"
1387
1387
  when: never
1388
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1389
- when: on_success
1390
1388
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1391
1389
  when: manual
1392
1390
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1857,8 +1857,6 @@ create release:
1857
1857
  - &a4
1858
1858
  if: $CI_PIPELINE_SOURCE == "schedule"
1859
1859
  when: never
1860
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1861
- when: on_success
1862
1860
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1863
1861
  when: manual
1864
1862
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -617,8 +617,6 @@ create release:
617
617
  - &a4
618
618
  if: $CI_PIPELINE_SOURCE == "schedule"
619
619
  when: never
620
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
621
- when: on_success
622
620
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
623
621
  when: manual
624
622
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -5772,8 +5772,6 @@ create release:
5772
5772
  - &a4
5773
5773
  if: $CI_PIPELINE_SOURCE == "schedule"
5774
5774
  when: never
5775
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
5776
- when: on_success
5777
5775
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
5778
5776
  when: manual
5779
5777
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -2313,8 +2313,6 @@ create release:
2313
2313
  - &a4
2314
2314
  if: $CI_PIPELINE_SOURCE == "schedule"
2315
2315
  when: never
2316
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
2317
- when: on_success
2318
2316
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2319
2317
  when: manual
2320
2318
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1461,8 +1461,6 @@ create release:
1461
1461
  - &a4
1462
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1463
1463
  when: never
1464
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1465
- when: on_success
1466
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1467
1465
  when: manual
1468
1466
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1469,8 +1469,6 @@ create release:
1469
1469
  - &a4
1470
1470
  if: $CI_PIPELINE_SOURCE == "schedule"
1471
1471
  when: never
1472
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1473
- when: on_success
1474
1472
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1475
1473
  when: manual
1476
1474
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1486,8 +1486,6 @@ create release:
1486
1486
  - &a4
1487
1487
  if: $CI_PIPELINE_SOURCE == "schedule"
1488
1488
  when: never
1489
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1490
- when: on_success
1491
1489
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1492
1490
  when: manual
1493
1491
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1523,8 +1523,6 @@ create release:
1523
1523
  - &a5
1524
1524
  if: $CI_PIPELINE_SOURCE == "schedule"
1525
1525
  when: never
1526
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1527
- when: on_success
1528
1526
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1529
1527
  when: manual
1530
1528
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1503,8 +1503,6 @@ create release:
1503
1503
  - &a5
1504
1504
  if: $CI_PIPELINE_SOURCE == "schedule"
1505
1505
  when: never
1506
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1507
- when: on_success
1508
1506
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1509
1507
  when: manual
1510
1508
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -4832,8 +4832,6 @@ create release:
4832
4832
  - &a4
4833
4833
  if: $CI_PIPELINE_SOURCE == "schedule"
4834
4834
  when: never
4835
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
4836
- when: on_success
4837
4835
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
4838
4836
  when: manual
4839
4837
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -1503,8 +1503,6 @@ create release:
1503
1503
  - &a4
1504
1504
  if: $CI_PIPELINE_SOURCE == "schedule"
1505
1505
  when: never
1506
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
1507
- when: on_success
1508
1506
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1509
1507
  when: manual
1510
1508
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -2405,8 +2405,6 @@ create release:
2405
2405
  - &a4
2406
2406
  if: $CI_PIPELINE_SOURCE == "schedule"
2407
2407
  when: never
2408
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
2409
- when: on_success
2410
2408
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2411
2409
  when: manual
2412
2410
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -2397,8 +2397,6 @@ create release:
2397
2397
  - &a4
2398
2398
  if: $CI_PIPELINE_SOURCE == "schedule"
2399
2399
  when: never
2400
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
2401
- when: on_success
2402
2400
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2403
2401
  when: manual
2404
2402
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -0,0 +1,11 @@
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
+ import config from "./automatic-releases";
3
+
4
+ /**
5
+ * This test is auto-generated.
6
+ * Modifications will be overwritten on every `yarn test` run!
7
+ */
8
+
9
+ it("matches snapshot for automatic-releases local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
11
+ });
@@ -0,0 +1,28 @@
1
+ import type { Config } from "../src";
2
+
3
+ const config = {
4
+ appName: "test-app",
5
+ customerName: "pan",
6
+ releases: {
7
+ when: "auto",
8
+ },
9
+ components: {
10
+ www: {
11
+ dir: "www",
12
+ build: {
13
+ type: "node",
14
+ },
15
+ deploy: {
16
+ type: "google-cloudrun",
17
+ projectId: "google-project-id",
18
+ region: "europe-west6",
19
+ },
20
+ },
21
+ },
22
+ } satisfies Config;
23
+
24
+ export default config;
25
+
26
+ export const information = {
27
+ title: "Automatic Releases on main branch",
28
+ };
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "3.19.0",
56
+ "version": "3.20.0",
57
57
  "scripts": {
58
58
  "build:tsc": "yarn tsc",
59
59
  "build": "yarn build:compile && yarn build:inline-variables",
@@ -99,13 +99,15 @@ export const createMainPipeline = async <T extends PipelineType>(
99
99
  jobs: {
100
100
  ...allJobs,
101
101
  ...Object.fromEntries(
102
- Object.entries(getGitlabReleaseJobs()).map(([name, gitlabJob]) => [
103
- name,
104
- {
105
- gitlabJob,
106
- context: null,
107
- },
108
- ]),
102
+ Object.entries(getGitlabReleaseJobs(config)).map(
103
+ ([name, gitlabJob]) => [
104
+ name,
105
+ {
106
+ gitlabJob,
107
+ context: null,
108
+ },
109
+ ],
110
+ ),
109
111
  ),
110
112
  },
111
113
  variables: config.runnerVariables,