Trying to make multi-step releases with GitHub Actions
In the repo are 2 releasable components:
./subcomponent, v1 of the api/implementation, producesmodule github.com/n3wscott/releases-demo/subcomponent../v2, v1 of the api/implementation, producesmodule github.com/n3wscott/releases-demo/v2../subcomponent, using both v1 and v2 apis, producesgithub.com/n3wscott/releases-demo/subcomponent
Note:
v2depends onsubcomponentsubcomponentdepends onv1andv2.
- Create a
release-v<major>.<minor>release branch. - Release
subcomponent.- Tag the release branch repo with the correct semver tag in the form
v1.<minor>.<patch>
- Tag the release branch repo with the correct semver tag in the form
- Release
v2.- Confirm
v1has a new release. - Update the version of
v1inv2's go mod. - Drop the
replacedirective inv2's go mod file. - Tag the release branch repo with the correct semver tag in the form
v2.<minor>.<patch>
- Confirm
- Release
subcomponent- Confirm
v1has a new release. - Update the version of
v1insubcomponent's go mod. - Confirm
v2has a new release. - Update the version of
v2insubcomponent's go mod. - Drop the
replacedirective inv2's go mod file. - Tag the release branch repo with the correct semver tag in the form
subcomponent/v2.<minor>.<patch>
- Confirm