diff --git a/bin/scripts/release.sh b/bin/scripts/release.sh index 7c90474..74945d3 100755 --- a/bin/scripts/release.sh +++ b/bin/scripts/release.sh @@ -81,7 +81,9 @@ log_and_run git push origin "$NEXT_VERSION" # Update the latest tag printfe "%s\n" "cyan" "Updating 'latest' tag..." -log_and_run git tag -f latest "$NEXT_VERSION" +# Get the commit that the new version tag points to +COMMIT_HASH=$(git rev-parse "$NEXT_VERSION") +log_and_run git tag -f latest "$COMMIT_HASH" log_and_run git push -f origin latest printfe "%s\n" "green" "Successfully tagged and pushed version $NEXT_VERSION"