From 5e214f0dc88d32ff105e90bccca6d95972b56f15 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 9 Jul 2025 08:12:58 -0700 Subject: [PATCH] Read the React Native version from the react-native's package.json (#52509) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52509 When building the CI Workflow to build React Native prebuilds, we were reading the react-native's version from the root package.json. This package.json is not updated by the release script, so the version is always 1000. This makes the build process fail for stable releases. With this change, we read the version from the right package.json file ## Changelog: [Internal] - Read React Native version from the right package.json file Reviewed By: cortinico Differential Revision: D78007906 fbshipit-source-id: 35f868a1c203245fdcf518ee81957352e3ab1de7 --- .github/workflows/prebuild-ios-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-ios-core.yml b/.github/workflows/prebuild-ios-core.yml index e4983229f64..4921aba754a 100644 --- a/.github/workflows/prebuild-ios-core.yml +++ b/.github/workflows/prebuild-ios-core.yml @@ -83,7 +83,7 @@ jobs: # Move the XCFramework in the destination directory mv /tmp/third-party/packages/react-native/third-party/ReactNativeDependencies.xcframework packages/react-native/third-party/ReactNativeDependencies.xcframework - VERSION=$(jq -r '.version' package.json) + VERSION=$(jq -r '.version' packages/react-native/package.json) echo "$VERSION-${{matrix.flavor}}" > "packages/react-native/third-party/version.txt" cat "packages/react-native/third-party/version.txt" # Check destination directory