@catladder/cli 0.0.0-next-89bce6d0 â 0.0.0-next-ddc387fe
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/apps/cli/src/release/changesetsReleaseJob.js +4 -0
- package/dist/apps/cli/src/release/changesetsReleaseJob.js.map +1 -1
- package/dist/apps/cli/src/release/githubQueuedRelease.js +22 -3
- package/dist/apps/cli/src/release/githubQueuedRelease.js.map +1 -1
- package/dist/apps/cli/src/release/stepSummary.d.ts +6 -0
- package/dist/apps/cli/src/release/stepSummary.js +32 -0
- package/dist/apps/cli/src/release/stepSummary.js.map +1 -0
- package/dist/bundles/catci/index.js +3 -3
- package/dist/bundles/catenv/index.js +216 -109
- package/dist/bundles/cli/index.js +216 -109
- package/dist/bundles/skills/catladder-pipelines/SKILL.md +8 -1
- package/dist/bundles/skills/catladder-releases/SKILL.md +17 -10
- package/dist/packages/pipeline/src/backends/github/GithubBackend.js +93 -72
- package/dist/packages/pipeline/src/backends/github/GithubBackend.js.map +1 -1
- package/dist/packages/pipeline/src/backends/github/ensureImageJobs.d.ts +12 -0
- package/dist/packages/pipeline/src/backends/github/ensureImageJobs.js +40 -0
- package/dist/packages/pipeline/src/backends/github/ensureImageJobs.js.map +1 -0
- package/dist/packages/pipeline/src/backends/github/githubReleaseJobs.d.ts +17 -14
- package/dist/packages/pipeline/src/backends/github/githubReleaseJobs.js +76 -37
- package/dist/packages/pipeline/src/backends/github/githubReleaseJobs.js.map +1 -1
- package/dist/skills/catladder-pipelines/SKILL.md +8 -1
- package/dist/skills/catladder-releases/SKILL.md +17 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/release/changesetsReleaseJob.ts +6 -0
- package/src/release/githubQueuedRelease.ts +37 -3
- package/src/release/stepSummary.ts +27 -0
|
@@ -30,19 +30,25 @@ are generated, never hand-edited.
|
|
|
30
30
|
- On GitLab the button is a quick no-op job; the actual release runs
|
|
31
31
|
in the automatic `đ release once pipeline succeeds` job (skipped
|
|
32
32
|
when the button was never clicked â never run it by hand).
|
|
33
|
-
- On GitHub the
|
|
33
|
+
- On GitHub, releasing is the **`đ catladder create release`**
|
|
34
|
+
workflow (Actions sidebar â Run workflow): it releases immediately
|
|
34
35
|
when the main workflow for HEAD is green, queues the release when
|
|
35
|
-
it is still running (the
|
|
36
|
+
it is still running (the `đ ī¸ catladder release on green` workflow then
|
|
36
37
|
picks it up on completion), and fails when the run concluded red.
|
|
37
38
|
- **`auto`** â the release job runs automatically on every main-branch
|
|
38
39
|
pipeline (it still no-ops when there is nothing to release).
|
|
39
40
|
|
|
40
|
-
There is always also a
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
There is always also a **force release** escape hatch that releases
|
|
42
|
+
**immediately**, ignoring the state of the pipeline: on GitLab the
|
|
43
|
+
manual `â ī¸ force create release` job, on GitHub the *force* checkbox of
|
|
44
|
+
the `đ catladder create release` workflow. With `method: "changesets"`
|
|
45
|
+
forcing has an extra meaning: it releases **even when no changesets are
|
|
46
|
+
pending** (patch bump with a generic changelog entry) â the recovery
|
|
47
|
+
path when a change was merged without a changeset and must ship now.
|
|
48
|
+
|
|
49
|
+
On GitHub, other manual tasks are split into per-kind dispatch
|
|
50
|
+
workflows the same way (`âļī¸ catladder deploy`, `âšī¸ catladder stop`,
|
|
51
|
+
`âŠī¸ catladder rollback`), each with a dropdown of its tasks.
|
|
46
52
|
|
|
47
53
|
## `method` â how the version is decided
|
|
48
54
|
|
|
@@ -108,8 +114,9 @@ the `security` commands in the `catladder-cli` reference.
|
|
|
108
114
|
|
|
109
115
|
- Fails immediately on the audit â handle the security-audit gate above.
|
|
110
116
|
- `changesets` released nothing â no `.changeset/*.md` files were
|
|
111
|
-
pending. To ship anyway,
|
|
112
|
-
|
|
117
|
+
pending. To ship anyway, force the release (patch bump) â gitlab:
|
|
118
|
+
`â ī¸ force create release` job, github: force checkbox â or merge an
|
|
119
|
+
MR adding a changeset describing the accumulated work.
|
|
113
120
|
- Wrong version bump â check commit types (semantic-release) or the bump
|
|
114
121
|
levels in the changeset files (changesets).
|
|
115
122
|
- Inspect the job with `yarn catladder project ci job-log` (see the
|