mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
[LOCAL] Set the release version also to test RC.0
This commit is contained in:
1 parent
e30710c3a2
commit
dc90b0b7f3
1 file changed
+8
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user