Skip to content

Commit

Permalink
feat(actions): add git.prerelease_suffix within .goreleaser.yaml
Browse files Browse the repository at this point in the history
This change is needed to prevent the prerelease version from being the latest version. The goreleaser GitHub action unfortunately does not enable this setting by default, https://github.com/goreleaser/goreleaser/blob/main/internal/pipe/git/git.go#L311. Therefore, we need to enable this setting because more often than not the prerelease tag is the same commit as the release tag.

Signed-off-by: Casale, Robert <[email protected]>
  • Loading branch information
Gearheads committed May 9, 2024
1 parent fb0dbce commit d6ecdc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ before:
hooks:
- go mod download

git:
# What should be used to specify prerelease suffix while sorting tags when gathering
# the current and previous tags if there are more than one tag in the same commit.
#
# Since: v1.17 of goreleaser
prerelease_suffix: "-"

builds:
-
id: default
Expand Down

0 comments on commit d6ecdc9

Please sign in to comment.