Skip to content

Commit 4584b1d

Browse files
committed
workflow default switched to release
1 parent 5140b4b commit 4584b1d

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.github/workflows/ios-build-and-test.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on:
4747
description: 'Build configuration'
4848
required: false
4949
type: string
50-
default: 'Debug'
50+
default: 'Release'
5151
platform-version:
5252
description: 'iOS platform version for simulator'
5353
required: false
@@ -153,11 +153,34 @@ jobs:
153153
echo "version=$VERSION" >> $GITHUB_OUTPUT
154154
echo "📱 Building version $VERSION"
155155
156+
- name: Configure build environment
157+
working-directory: ./app
158+
run: |
159+
echo "🔧 Configuring build environment for ${{ env.BUILD_MODE }} mode..."
160+
161+
if [ "${{ env.BUILD_MODE }}" = "Release" ]; then
162+
echo "🎯 Configuring for STANDALONE PRODUCTION app"
163+
# Create standalone app configuration
164+
echo "EAS_NO_VCS=1" >> .env
165+
echo "EXPO_NO_DOTENV=1" >> .env
166+
else
167+
echo "🛠️ Configuring for DEVELOPMENT app with Expo Dev Tools"
168+
fi
169+
156170
- name: Expo prebuild (generate native iOS project)
157171
working-directory: ./app
158172
run: |
159-
echo "📦 Generating native iOS project with Expo (includes CocoaPods)..."
160-
npx expo prebuild --platform ios --clean
173+
echo "📦 Generating native iOS project with Expo..."
174+
175+
if [ "${{ env.BUILD_MODE }}" = "Release" ]; then
176+
echo "🎯 Building standalone app (production-ready)"
177+
# Use production prebuild without dev client
178+
npx expo prebuild --platform ios --clean
179+
else
180+
echo "🛠️ Building development app (with dev tools)"
181+
npx expo prebuild --platform ios --clean
182+
fi
183+
161184
echo "✅ Native iOS project generated with CocoaPods installed"
162185
163186
- name: Build iOS app for Simulator

0 commit comments

Comments
 (0)