mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[RN][iOS] Set RN version before building binaries in Release
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user