Commit f9710d7
authored
ci: fix alpha release train gate (#276)
## Summary
- Fix `release-alpha-train` so it uses `always()` and then explicitly
requires `detect-alpha-release` and `ci-success` to succeed before
publishing.
- Keep the release-plan guard aligned so future workflow edits must
preserve the explicit gate, including the guard being scoped to the
`release-alpha-train` job block.
- Add coverage for the main-branch skip case and the false-positive
workflow match case.
## Validation
- Observed [`ci` run
27441077450](https://github.com/zitadel/nextgen/actions/runs/27441077450):
CI/smoke gates passed, `detect-alpha-release` found release-relevant
package files, but `release-alpha-train` was skipped.
- PR CI run
[`27444586592`](https://github.com/zitadel/nextgen/actions/runs/27444586592)
passed. `release-alpha-train` is skipped there as expected for pull
requests.
- `corepack pnpm install --frozen-lockfile`
- `corepack pnpm nx test @zitadel/cli`
- `corepack pnpm nx test @zitadel/cli --
tests/unit/scripts/check-alpha-release-plan.test.ts`
- `corepack pnpm nx lint @zitadel/source --skip-nx-cache`
- `go test -v -tags spanner_integration -timeout=10m
./internal/api/integration_test -run TestListFlowDefinitions -count=1`
- `corepack pnpm run check -- --only release`
- `git diff --check`
## Release notes / changeset
- Empty changeset added: `.changeset/fix-alpha-release-gate.md`.
- No package API or runtime behavior changes in this PR. The expected
release impact is that the next main CI run can execute the
already-versioned alpha train instead of inheriting the intentional
`changeset-check` skip.
## Notes
- The linked run's head commit has `@zitadel/cli` at `0.1.0-alpha.3`,
while npm still reports the `alpha` dist-tag at `0.1.0-alpha.2`, so that
run did not publish alpha.3.
- I also corrected the existing `v0.1.0-alpha.2` GitHub Release metadata
to `prerelease=true` and `latest=false` after observing it was marked as
a normal latest release.
- `release-alpha-train` still uses the 8-core Depot runner because the
same job can proceed from npm publishing into QEMU/Buildx plus
GoReleaser. If we want to optimize runner size later, the clean split is
npm publishing on 4-core and GoReleaser on 8-core.1 parent b445881 commit f9710d7
4 files changed
Lines changed: 66 additions & 5 deletions
File tree
- .changeset
- .github/workflows
- apps/cli/tests/unit/scripts
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
| 798 | + | |
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| |||
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
131 | 164 | | |
132 | 165 | | |
133 | 166 | | |
| |||
200 | 233 | | |
201 | 234 | | |
202 | 235 | | |
203 | | - | |
| 236 | + | |
204 | 237 | | |
205 | 238 | | |
206 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
237 | 263 | | |
238 | 264 | | |
239 | 265 | | |
| |||
0 commit comments