Skip to content

Commit b2c71a1

Browse files
committed
fix: New version script
1 parent eec49f3 commit b2c71a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/release/new-version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ function menu() {
4242

4343
SHORTCOMMIT="$(git rev-parse --short HEAD)"
4444

45-
PREV_VERSION="$(git tag --sort=committerdate | tail -1)"
45+
PREV_VERSION="$(git tag | sort -V | tail -1)"
4646
if [ -z "${PREV_VERSION}" ] || [ "${PREV_VERSION}" = "${SHORTCOMMIT}" ]
4747
then
4848
PREV_VERSION="v0.0.0"
4949
fi
5050

51+
echo "Current version: ${PREV_VERSION}"
52+
5153
case "$selection" in
5254
1)
5355
printf "Major updates......\n"

0 commit comments

Comments
 (0)