Skip to content

Commit 0cc47ef

Browse files
Document the release process (#645)
* Point development releases to Feedz.io Pre-releases are published to Feedz.io, not MyGet. * Document the release process Describe the branching model, where changes go and how they are backported, how a new major starts, how releases are tagged and published, and the release order across the RadicalFx repositories. * Describe the fixed CI tag filters
1 parent 5d7ebe6 commit 0cc47ef

2 files changed

Lines changed: 82 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Radical.Windows requires .NET 10 (`net10.0-windows`).
1111
### Release
1212

1313
* Latest release is available on NuGet: http://www.nuget.org/profiles/radical
14-
* Development releases are available on MyGet: https://www.myget.org/F/radical-unstable/api/v3/index.json
14+
* Development releases are available on Feedz.io: https://f.feedz.io/radical-framework/pre-releases/nuget/index.json
15+
* How releases are made: [RELEASING.md](RELEASING.md)
1516

1617
### Q&A
1718

‎RELEASING.md‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Releasing
2+
3+
This repository follows the same release process as the other RadicalFx repositories: [Radical](https://github.com/RadicalFx/Radical/blob/master/RELEASING.md), [Radical.Windows](https://github.com/RadicalFx/Radical.Windows/blob/master/RELEASING.md), and [Radical.Avalonia](https://github.com/RadicalFx/Radical.Avalonia/blob/main/RELEASING.md).
4+
5+
## Branches and versions
6+
7+
Versions are calculated by [MinVer](https://github.com/adamralph/minver) from git tags. Nothing else sets a version number.
8+
9+
- **`master`** is where development happens, and it always builds the **next major** that hasn't been branched yet. Its `MinVerMinimumMajorMinor`, in `src/Radical.Windows/Radical.Windows.csproj`, is set to that major, so untagged builds are versioned `N.0.0-alpha.0.<height>`.
10+
- **`release-X.Y`** branches stabilize and patch an `X.Y` release. Betas, release candidates, the final release, and patch releases are all tagged on the release branch, never on `master`.
11+
12+
To see which release branches exist, and what each branch builds:
13+
14+
```shell
15+
git branch -r --list 'origin/release-*'
16+
dotnet build src/Radical.Windows/Radical.Windows.csproj -t:MinVer -getProperty:MinVerVersion
17+
```
18+
19+
Until a repository ships its first stable major, it may have no release branch yet. In that case pre-releases are tagged on `master`.
20+
21+
## Where changes go
22+
23+
1. Every change goes to `master` first, through a pull request.
24+
2. If a change also has to ship in a release that's being prepared, cherry-pick it onto a branch created from `release-X.Y` and open a pull request against `release-X.Y`:
25+
26+
```shell
27+
git switch -c backport-<topic>-to-X.Y origin/release-X.Y
28+
git cherry-pick -x <commit>...
29+
```
30+
31+
`-x` records the original commit in the message. Include any earlier commits the change depends on.
32+
3. Don't backport:
33+
- Renovate dependency updates, unless the release needs them: release branches keep their own dependency set.
34+
- Workflows that only run from the default branch, such as the project board one.
35+
36+
Anything merged to `master` after a release branch is created is **not** in that release unless it's backported.
37+
38+
## Starting a new major
39+
40+
To start stabilizing major `X` (for example, the first `X.0.0-beta.1`):
41+
42+
1. On `master`, `MinVerMinimumMajorMinor` should already be `X`.
43+
2. Create `release-X.0` from `master` and push it.
44+
3. Open a pull request on `master` that sets `MinVerMinimumMajorMinor` to `X+1`, so `master` moves on to the next major.
45+
4. Tag the first pre-release on `release-X.0`, as described below.
46+
47+
Don't change `MinVerMinimumMajorMinor` on `master` to get a release out of it: releases come from the release branch.
48+
49+
## Tagging a release
50+
51+
1. Make sure everything that should ship is merged into `release-X.Y`, including backports, and that its CI build is green.
52+
2. Check the dependencies on other RadicalFx packages. A stable release must not depend on a pre-release, and NuGet warns about it when packing (NU5104). If needed, raise the lower bound of the version range to the stable version first.
53+
3. Tag the release branch and push the tag:
54+
55+
```shell
56+
git switch release-X.Y
57+
git pull
58+
git tag X.Y.Z # or X.Y.Z-beta.N, X.Y.Z-rc.N
59+
git push origin X.Y.Z
60+
```
61+
62+
Tags have no `v` prefix: the CI workflow only runs on tags matching `[0-9]+.[0-9]+.[0-9]+` and `[0-9]+.[0-9]+.[0-9]+-*`.
63+
4. The tag build runs the tests and publishes the packages:
64+
- pre-release tags (`X.Y.Z-*`) go to the [Feedz.io pre-releases feed](https://f.feedz.io/radical-framework/pre-releases/nuget/index.json)
65+
- stable tags (`X.Y.Z`) go to [NuGet.org](https://www.nuget.org/profiles/radical)
66+
5. Create the GitHub release from the tag, with notes generated since the previous release:
67+
68+
```shell
69+
gh release create X.Y.Z --verify-tag --generate-notes --notes-start-tag <previous-tag>
70+
```
71+
72+
Add `--prerelease` for pre-release tags. Call out breaking changes, such as a new minimum .NET version, at the top of the notes.
73+
74+
## Releasing across repositories
75+
76+
Radical.Windows and Radical.Avalonia depend on Radical through a version range, for example `[3.0.0-beta.1, 4.0.0)`:
77+
78+
1. Release Radical first.
79+
2. Then update the range in the UI libraries if needed: raise the lower bound when they depend on a new Radical release, and widen the upper bound when Radical ships a new major.
80+
3. Then release the UI libraries.

0 commit comments

Comments
 (0)