From dcfe7f50f90e424cd93410de140d56f160f802a1 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 6 Jan 2026 06:51:24 -0800 Subject: [PATCH] Set the release version also to test RC.0 (#55054) Summary: This is a cherry-pick of dc90b0b7f3248e962baa4fd36e9a76d7f8fd5d21 on main from 0.83 and 0.84 ## Changelog: [INTERNAL] - Pull Request resolved: https://github.com/facebook/react-native/pull/55054 Test Plan: CI Reviewed By: cipolleschi Differential Revision: D90174387 Pulled By: cortinico fbshipit-source-id: 74b0ec3b853f2654ce140b9af27f13fe22c81f4a --- .github/actions/build-android/action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-android/action.yml b/.github/actions/build-android/action.yml index 0aba8b032df..efd6ea96a70 100644 --- a/.github/actions/build-android/action.yml +++ b/.github/actions/build-android/action.yml @@ -16,10 +16,17 @@ runs: uses: ./.github/actions/setup-node - name: Install node dependencies uses: ./.github/actions/yarn-install + - name: Read current RNVersion + shell: bash + id: read-rn-version + run: | + echo "rn-version=$(cat packages/react-native/package.json | jq -r 'version')" >> $GITHUB_OUTPUT - name: Set React Native Version # We don't want to set the version for stable branches, because this has been # already set from the 'create release' commits on the release branch. - if: ${{ !endsWith(github.ref_name, '-stable') }} + # For testing RC.0, though, the version has not been set yet. In that case, we are on Stable branch and + # it is the only case when the version is still 1000.0.0 + if: ${{ !endsWith(github.ref_name, '-stable') || endsWith(github.ref_name, '-stable') && steps.read-rn-version.outputs.rn-version == '1000.0.0' }} shell: bash run: node ./scripts/releases/set-rn-artifacts-version.js --build-type ${{ inputs.release-type }} - name: Setup gradle