Repository navigation
Commit 3823cc3
authored
ci(release): add alpha/beta/rc release channel (#4388)
## What kind of change does this PR introduce?
CI — adds a pre-release channel to the Release dispatch.
## What is the new behavior?
The Release workflow gains a `channel` choice input (`none` / `alpha` /
`beta` / `rc`, default `none`), combined with the existing `bump`
(major/minor/patch):
- `major` + `beta` → `6.0.0-beta.1`; re-run → `6.0.0-beta.2` (the
counter auto-increments from existing `v6.0.0-beta.N` tags)
- switch to `rc` → `6.0.0-rc.1` (per-channel counter; `beta.10`
correctly orders above `beta.9`)
- `major` + `none` → finalises `6.0.0` (last stable + bump)
Versions use dotted SemVer 2.0 pre-release form (`-beta.1`), which NuGet
orders correctly. Pre-release runs flag the GitHub release with
`--prerelease`, so the latest stable stays "Latest".
`channel=none` maps to an empty `preRelease` (choice inputs can't be
empty); the work is delegated to the reusable `workflow-common-release`
/ `workflow-common-create-release` in `reactiveui/actions-common@main`.
## What is the current behavior?
The Release dispatch only exposes `bump` (patch/minor/major) and always
cuts a stable RTM version (`vX.Y.Z`). There is no supported way to
publish an incrementing alpha/beta/rc pre-release.
## What might this PR break?
None. `channel` defaults to `none`, which reproduces today's
stable-release behaviour exactly. Finalising a stable release uses the
same "last stable + bump" math as before, so re-select the same `bump`
the betas used.
## Checklist
- [x] I have read the [Contribute
guide](https://www.reactiveui.net/contribute/index.html)
- [ ] Tests have been added or updated (for bug fixes / features)
- [ ] Docs have been added or updated (for bug fixes / features)
- [x] Changes target the `main` branch
- [x] PR title follows [Conventional
Commits](https://www.conventionalcommits.org/)
## Additional information
Depends on the reusable-workflow side in
`reactiveui/actions-common@main` (already merged): `pre-release-id` on
`compute-version-and-tag`, `preRelease`/`prerelease` on
`workflow-common-release`, and `prerelease` on
`workflow-common-create-release`.1 parent 6433b00 commit 3823cc3
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
| |||
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
| |||
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
| 88 | + | |
0 commit comments