Skip to content

Commit 387fed1

Browse files
committed
feat(actions): add git.prerelease_suffix within .goreleaser.yaml
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]>
1 parent fb0dbce commit 387fed1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.goreleaser.yml

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ before:
22
hooks:
33
- go mod download
44

5+
git:
6+
# What should be used to specify prerelease suffix while sorting tags when gathering
7+
# the current and previous tags if there are more than one tag in the same commit.
8+
#
9+
# Since: v1.17 of goreleaser
10+
prerelease_suffix: "-"
11+
512
builds:
613
-
714
id: default

0 commit comments

Comments
 (0)