Buildkite Test Engine Client (bktec) is an open source tool to orchestrate your test suites. It uses your Buildkite Test Engine suite data to intelligently partition and parallelise your tests.
MIT License
9
stars
1
forks
source link
Ignore `-rc` tags when releasing stable version #187
We create GitHub release using goreleaser. By default, goreleaser will generate the changelog by comparing the current version with the previous version. The changelog for v0.9.0 is generated by comparing with v0.9.0-rc.4 as you can see below:
However, this is not always the case. When we release a stable version from a release candidate -rc.* version, we want the changelog in GitHub release to be compared with the latest stable version.
For illustration, consider following versions that has been released.
v0.8.1
v0.9.0-rc.1
v0.9.0-rc.2
v0.9.0-rc.3
v0.9.0-rc.4
When we are releasing v0.9.0, we want it to be compared with v0.8.1 instead of v0.9.0-rc.4. This is also the default behaviour in GitHub Release (without goreleaser).
goreleaser doesn't have a straight forward option to achieve this, but we can use ignore_tags to tell goreleaser to ignore -rc versions when we release a stable version.
Description
We create GitHub release using
goreleaser
. By default,goreleaser
will generate the changelog by comparing the current version with the previous version. The changelog forv0.9.0
is generated by comparing withv0.9.0-rc.4
as you can see below:However, this is not always the case. When we release a stable version from a release candidate
-rc.*
version, we want the changelog in GitHub release to be compared with the latest stable version. For illustration, consider following versions that has been released.v0.8.1
v0.9.0-rc.1
v0.9.0-rc.2
v0.9.0-rc.3
v0.9.0-rc.4
When we are releasing
v0.9.0
, we want it to be compared withv0.8.1
instead ofv0.9.0-rc.4
. This is also the default behaviour in GitHub Release (withoutgoreleaser
).https://github.com/user-attachments/assets/72c6d261-4031-4b15-b8fc-7938b3bda382
goreleaser
doesn't have a straight forward option to achieve this, but we can useignore_tags
to tellgoreleaser
to ignore-rc
versions when we release a stable version.