Skip to content

Commit a000679

Browse files
committed
Fix sorting algorithm of react-native versions
1 parent 087424f commit a000679

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/getNewPatchedRNVersion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PACKAGE_VERSIONS="$(gh api "/orgs/Expensify/packages/maven/com.expensify.${PACKA
2121
PACKAGE_VERSIONS="$(echo "$PACKAGE_VERSIONS" | grep "$VERSION")"
2222

2323
# Grab the highest patch version from there
24-
LATEST_PATCHED_VERSION="$(echo "$PACKAGE_VERSIONS" | sort | tail -n1)"
24+
LATEST_PATCHED_VERSION="$(echo "$PACKAGE_VERSIONS" | sort -V | tail -n1)"
2525

2626
if [[ -n "$LATEST_PATCHED_VERSION" ]]; then
2727
PATCH_ITERATION=${LATEST_PATCHED_VERSION##*-}

0 commit comments

Comments
 (0)