buildkite / test-engine-client

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

Closed nprizal closed 2 months ago

nprizal commented 2 months ago

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 for v0.9.0 is generated by comparing with v0.9.0-rc.4 as you can see below: Screenshot 2024-09-12 at 9 36 39 AM

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.

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).

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 use ignore_tags to tell goreleaser to ignore -rc versions when we release a stable version.