Skip to content

Commit 3fd3960

Browse files
committed
Update a build script for the latest React Native ver 0.77
1 parent b7fef02 commit 3fd3960

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

+11-5
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,20 @@ runs:
6565
run: |
6666
set -x # print all executed commands
6767
68+
export YARN_ENABLE_IMMUTABLE_INSTALLS=false
69+
6870
# Create new tmp React Native project
69-
npx react-native@${{ inputs.rn-ver }} init ${{ env.APP_NAME }} --version ${{ inputs.rn-ver }} --skip-git-init --install-pods false
71+
npx @react-native-community/cli init ${{ env.APP_NAME }} --version ${{ inputs.rn-ver }} --skip-git-init --install-pods false --pm yarn
7072
cd ${{ env.APP_NAME }}
7173
72-
# Install my module
73-
# Yarn1 syntax: yarn add ${{ inputs.module-to-install }}
74-
# Yarn Berry (2+) syntax:
75-
yarn add @react-native-community/image-editor@portal:${{ inputs.module-to-install }}
74+
# Link my module
75+
if [ -d ".yarn" ]; then
76+
# Yarn Berry (2+) syntax:
77+
yarn add @react-native-community/image-editor@portal:${{ inputs.module-to-install }}
78+
else
79+
# Yarn1 syntax:
80+
yarn add ${{ inputs.module-to-install }}
81+
fi
7682
7783
# Debug info
7884
npx react-native@${{ inputs.rn-ver }} info

0 commit comments

Comments
 (0)