Skip to content

Commit 0a3b34c

Browse files
committed
fix release script. The last released tag logic was not accurate
1 parent f4dff8c commit 0a3b34c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎bin/release‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ do
3030
cd $TMP_DIR;
3131
git clone $REMOTE_URL . --depth=200
3232
git checkout $CURRENT_BRANCH;
33-
LAST_RELEASE=$(git tag -l [0-9].* | tail -n1)
33+
# gsort comes with coreutils packages. brew install coreutils
34+
LAST_RELEASE=$(git tag -l [0-9].* | gsort -V | tail -n1 )
3435

3536
echo "Last release $LAST_RELEASE";
3637

0 commit comments

Comments
 (0)