Commit f9151ee
authored
ci: harden alpha release publishing (#282)
## Summary
- Block alpha train completion when Changesets only creates the Version
Packages PR and npm did not publish.
- Preserve GoReleaser recovery when the release tag already exists.
- Treat npm CLI dist-tag promotion as best-effort so OIDC dist-tag auth
failures do not block GitHub Release/GHCR recovery.
## Validation
- `corepack pnpm nx test @zitadel/cli`
- `corepack pnpm changeset status --output
/tmp/nextgen-changeset-status.json && node
scripts/check-alpha-release-plan.mjs /tmp/nextgen-changeset-status.json`
- `corepack pnpm run check -- --only node`
- `corepack pnpm --filter @zitadel/cli test -- --run
tests/unit/scripts/check-alpha-release-plan.test.ts
tests/unit/scripts/release-alpha-train.test.ts`
## Release notes / changeset
- Empty changesets added for CI-only release workflow fixes.
## Notes
- Existing remote artifacts for `v0.1.0-alpha.4` were not deleted or
modified.
- The npm packages for `0.1.0-alpha.4` published successfully in the
observed run; the failure was the follow-up dist-tag mutation.1 parent d841b61 commit f9151ee
4 files changed
Lines changed: 26 additions & 6 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 | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
885 | | - | |
| 884 | + | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| |||
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
228 | 241 | | |
229 | 242 | | |
230 | 243 | | |
| |||
382 | 395 | | |
383 | 396 | | |
384 | 397 | | |
385 | | - | |
386 | | - | |
| 398 | + | |
| 399 | + | |
387 | 400 | | |
388 | 401 | | |
389 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
| |||
0 commit comments