Skip to content

Commit

Permalink
Fix bug in check latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
imheresamir committed Sep 17, 2021
1 parent 2856148 commit d7a8d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function main() {

# Add 'latest' tag only when TAG_NAME is the highest semantic tag
local LATEST_TAG
LATEST_TAG="$(git tag | sort -r --version-sort)"
LATEST_TAG="$(git tag | sort -r --version-sort | head -1)"
if [[ "${TAG_NAME}" == "${LATEST_TAG}" ]]; then
TAGS+=('latest')
fi
Expand Down

0 comments on commit d7a8d7c

Please sign in to comment.