From 1767cf545642a2822227d8a3411738647277a76c Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 8 Sep 2025 13:53:49 +0100 Subject: [PATCH] [RN][iOS] Set RN version before building binaries in Release --- .github/workflows/prebuild-ios-core.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/prebuild-ios-core.yml b/.github/workflows/prebuild-ios-core.yml index b2d05c5e88f..8c196316816 100644 --- a/.github/workflows/prebuild-ios-core.yml +++ b/.github/workflows/prebuild-ios-core.yml @@ -94,6 +94,17 @@ jobs: run: | cd packages/react-native node scripts/ios-prebuild.js -s -f "${{ matrix.flavor }}" + - name: Update React Native versions + shell: bash + if: steps.restore-ios-slice.outputs.cache-hit != 'true' && startsWith(github.ref, 'refs/tags/v') + run: | + VERSION=$(echo "${GITHUB_REF#refs/tags/v}") + if [[ -z "$VERSION" ]]; then + # If no version defined, exit. + exit 0 + fi + + node scripts/releases/set-version.js $VERSION - name: Build React Native if: steps.restore-ios-slice.outputs.cache-hit != 'true' shell: bash