File tree 1 file changed +11
-5
lines changed
.github/actions/build-app
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,20 @@ runs:
65
65
run : |
66
66
set -x # print all executed commands
67
67
68
+ export YARN_ENABLE_IMMUTABLE_INSTALLS=false
69
+
68
70
# 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
70
72
cd ${{ env.APP_NAME }}
71
73
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
76
82
77
83
# Debug info
78
84
npx react-native@${{ inputs.rn-ver }} info
You can’t perform that action at this time.
0 commit comments