Skip to content

Commit 3dfecd8

Browse files
authored
fix: use correct tag when commit is tagged with both prerelease and release (#218)
* fix: set explicit build tag in release * Use `name_template` to name artifacts without the `-rc` suffix. * Add commit tag sorting. * Fix template by amending default. * Revert the template rename.
1 parent d240aa1 commit 3dfecd8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.goreleaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,11 @@ changelog:
6363
exclude:
6464
- '^docs:'
6565
- '^test:'
66+
67+
git:
68+
# Sort tags by creation time when commit has more than one tag.
69+
tag_sort: -version:creatordate
70+
71+
# Specify prerelease suffix while sorting tags if there are more than one tag
72+
# in the same commit.
73+
prerelease_suffix: "-rc"

0 commit comments

Comments
 (0)