1515 description : " Path of the react-native project"
1616 required : true
1717 type : string
18- xcode-project-path :
19- description : " Path of the Xcode project"
20- required : true
21- type : string
22- xcode-workspace-path :
23- description : " Path of the Xcode workspace"
24- required : true
25- type : string
2618 release-type :
2719 description : " Release type of the project (debug/internal/production)"
2820 type : string
6557 description : " TestFlight groups"
6658 required : false
6759 type : string
60+ is-expo-project :
61+ description : " Is Expo project"
62+ required : false
63+ default : false
64+ type : boolean
6865 secrets :
6966 project-id :
7067 description : " WalletConnect Cloud ID"
@@ -122,7 +119,26 @@ jobs:
122119 root-path : ${{ inputs.root-path }}
123120 package-manager : ${{ inputs.package-manager }}
124121
122+ - name : Expo Prebuild
123+ if : ${{ inputs.is-expo-project == true }}
124+ run : |
125+ cd ${{ inputs.root-path }}
126+ npx expo prebuild --platform ios
127+
128+ - name : Set Xcode paths
129+ run : |
130+ # Find the .xcodeproj and .xcworkspace (works for both Expo and non-Expo)
131+ XCODEPROJ=$(find "${{ inputs.root-path }}/ios" -maxdepth 1 -name "*.xcodeproj" -print -quit)
132+ XCWORKSPACE=$(find "${{ inputs.root-path }}/ios" -maxdepth 1 -name "*.xcworkspace" -print -quit)
133+
134+ echo "Found Xcode project: $XCODEPROJ"
135+ echo "Found Xcode workspace: $XCWORKSPACE"
136+
137+ echo "XCODE_PROJECT_PATH=$XCODEPROJ" >> "$GITHUB_ENV"
138+ echo "XCWORKSPACE_PATH=$XCWORKSPACE" >> "$GITHUB_ENV"
139+
125140 - name : Set podfile path
141+ if : ${{ inputs.is-expo-project == false }}
126142 id : podfile-hash
127143 run : |
128144 echo "Root path: ${{ inputs.root-path }}"
@@ -132,6 +148,7 @@ jobs:
132148
133149 - name : Cache pods
134150 id : pods-cache
151+ if : ${{ inputs.is-expo-project == false }}
135152 uses : actions/cache@v4
136153 with :
137154 path : ${{ inputs.root-path }}/ios/Pods
@@ -187,8 +204,8 @@ jobs:
187204 MATCH_GIT_URL : ${{ secrets.match-git-url }}
188205 PODFILE_PATH : ${{ inputs.root-path }}/ios/Podfile
189206 SCHEME : ${{ inputs.scheme-name }}
190- XCODE_PROJECT_PATH : ${{ inputs.xcode-project-path }}
191- XCWORKSPACE_PATH : ${{ inputs.xcode-workspace-path }}
207+ XCODE_PROJECT_PATH : ${{ env.XCODE_PROJECT_PATH }}
208+ XCWORKSPACE_PATH : ${{ env.XCWORKSPACE_PATH }}
192209 PROJECT_TYPE : ${{ inputs.project-type }}
193210 RELEASE_TYPE : ${{ inputs.release-type }}
194211 BRANCH_NAME : ${{ github.ref_name }}
0 commit comments