Skip to content

Commit 9772ca4

Browse files
committed
fix release
1 parent cd5bd80 commit 9772ca4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

release.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ release: $(RELEASE_DEPS)
2121
fi
2222

2323
# 2. Get the latest git tag, or start at v0.0.0
24-
@CURRENT_TAG=$$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0"); \
24+
@CURRENT_TAG=$$(git tag -l "v*" | sort -V | tail -1 2>/dev/null || echo "v0.0.0"); \
2525
CURRENT_VERSION=$$(echo $$CURRENT_TAG | sed 's/^v//'); \
2626
MAJOR=$$(echo $$CURRENT_VERSION | cut -d. -f1); \
2727
MINOR=$$(echo $$CURRENT_VERSION | cut -d. -f2); \

0 commit comments

Comments
 (0)