Skip to content

Commit dc90b0b

Browse files
committed
[LOCAL] Set the release version also to test RC.0
1 parent e30710c commit dc90b0b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/actions/build-android/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ runs:
1616
uses: ./.github/actions/setup-node
1717
- name: Install node dependencies
1818
uses: ./.github/actions/yarn-install
19+
- name: Read current RNVersion
20+
shell: bash
21+
id: read-rn-version
22+
run: |
23+
echo "rn-version=$(cat packages/react-native/package.json | jq -r 'version')" >> $GITHUB_OUTPUT
1924
- name: Set React Native Version
2025
# We don't want to set the version for stable branches, because this has been
2126
# already set from the 'create release' commits on the release branch.
22-
if: ${{ !endsWith(github.ref_name, '-stable') }}
27+
# For testing RC.0, though, the version has not been set yet. In that case, we are on Stable branch and
28+
# it is the only case when the version is still 1000.0.0
29+
if: ${{ !endsWith(github.ref_name, '-stable') || endsWith(github.ref_name, '-stable') && steps.read-rn-version.outputs.rn-version == '1000.0.0' }}
2330
shell: bash
2431
run: node ./scripts/releases/set-rn-artifacts-version.js --build-type ${{ inputs.release-type }}
2532
- name: Setup gradle

0 commit comments

Comments
 (0)