Skip to content

Commit 437acdd

Browse files
authored
Merge pull request Expensify#63420 from software-mansion-labs/fix-sorting-of-rn-versions
[No QA] Fix sorting script of react-native versions
2 parents 63111c7 + a000679 commit 437acdd

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)