Open History to see the last commit
1name: Mobile EAS Production
2β
3# Production builds and OTA updates run from CI (Linux) β never from a laptop.
4# Under the fingerprint runtime-version policy the fingerprint must be computed
5# in the same OS/pnpm as the EAS build; a macOS `eas build` computes a different
6# fingerprint (platform-specific deps + pnpm version) and errors. On this Linux
7# runner, with corepack pinning pnpm 10.24 in eas.json, local == build.
8#
9# Every merge reconciles native fingerprints and publishes matching OTAs.
10# Store builds run here with `eas build --local` on Blacksmith (the android and
11# ios jobs). Local builds never appear in `eas build:list`, so each finished build
12# pushes a mobile-android-build/<version>/<fingerprint> or
13# mobile-ios-build/<profile>/<version>/<fingerprint> tag that the reconcile reads.
14# iOS prereleases use the testflight profile (3.0.0); App Store binaries use
15# production and the committed app version, built manually. Both receive OTAs
16# for their own major version. Android continues using production automatically.
17# TestFlight beta review may still be required for subsequent builds.
18# Hold native-change PRs (the "π± Native Change" label) and merge them as a
19# batch to avoid a store build per PR.
20# workflow_dispatch remains as a manual override for both modes (e.g. to
21# retry an errored build or force an OTA).
22on:
23 workflow_dispatch:
24 inputs:
25 mode:
26 description: "build (+ auto-submit to TestFlight / Google Play) or update (OTA)"
27 required: true
28 type: choice
29 default: build
30 options:
31 - build
32 - update
33 profile:
34 description: "production: store release; testflight: iOS 3.0.0 beta"
35 required: true
36 type: choice
37 default: production
38 options:
39 - production
40 - testflight
41 platform:
42 description: "Target platform"
43 required: true
44 type: choice
45 default: all
46 options:
47 - ios
48 - android
49 - all
50 version:
51 description: "Optional build version override (blank uses profile default; store overrides are committed)"
52 required: false
53 type: string
54 message:
55 description: "OTA update message (mode=update only)"
56 required: false
57 type: string
58 push:
59 branches: [main]
60 paths:
61 - apps/mobile/**
62 - packages/client-runtime/**
63 - packages/contracts/**
64 - packages/shared/**
65 - assets/**
66 - scripts/**
67 - patches/**
68 - pnpm-lock.yaml
69 - pnpm-workspace.yaml
70 - .github/workflows/mobile-eas-production.yml
71 - .github/workflows/mobile-eas-production-build.yml
72β
73permissions:
74 contents: read
75β
76jobs:
77 production:
78 name: EAS ${{ inputs.profile || 'production' }} ${{ github.event_name == 'push' && 'auto' || inputs.mode }}
79 if: github.repository == 'pingdotgg/t3code'
80 runs-on: blacksmith-8vcpu-ubuntu-2404
81 # Serialize runs so OTAs publish in merge order. GitHub keeps at most one
82 # queued job per group, so a burst of merges collapses into one run of the
83 # newest commit β intermediate commits don't need their own OTA.
84 concurrency:
85 group: mobile-eas-production
86 cancel-in-progress: false
87 permissions:
88 contents: read
89 outputs:
90 version_override: ${{ steps.version_override.outputs.applied }}
91 android_build: ${{ steps.reconcile.outputs.android_build || steps.android_manual.outputs.android_build }}
92 android_fingerprint: ${{ steps.reconcile.outputs.android_fingerprint || steps.android_manual.outputs.android_fingerprint }}
93 android_version: ${{ steps.reconcile.outputs.android_version || steps.android_manual.outputs.android_version }}
94 android_sha: ${{ steps.reconcile.outputs.android_sha || steps.android_manual.outputs.android_sha }}
95 ios_build: ${{ steps.reconcile.outputs.ios_build || steps.ios_manual.outputs.ios_build }}
96 ios_profile: ${{ steps.reconcile.outputs.ios_profile || steps.ios_manual.outputs.ios_profile }}
97 ios_fingerprint: ${{ steps.reconcile.outputs.ios_fingerprint || steps.ios_manual.outputs.ios_fingerprint }}
98 ios_version: ${{ steps.reconcile.outputs.ios_version || steps.ios_manual.outputs.ios_version }}
99 ios_sha: ${{ steps.reconcile.outputs.ios_sha || steps.ios_manual.outputs.ios_sha }}
100 env:
101 APP_VARIANT: production
102 NODE_OPTIONS: --max-old-space-size=8192
103 steps:
104 - name: Validate TestFlight inputs
105 if: github.event_name == 'workflow_dispatch' && inputs.profile == 'testflight'
106 env:
107 PLATFORM: ${{ inputs.platform }}
108 VERSION: ${{ inputs.version }}
109 run: |
110 if [ "$PLATFORM" != "ios" ] || [ -n "$VERSION" ]; then
111 echo "::error::TestFlight uses platform=ios and its fixed version. Use production for a committed store version."
112 exit 1
113 fi
114β
115 - id: expo-token
116 name: Check for EXPO_TOKEN
117 env:
118 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
119 run: |
120 if [ -n "$EXPO_TOKEN" ]; then
121 echo "present=true" >> "$GITHUB_OUTPUT"
122 else
123 echo "present=false" >> "$GITHUB_OUTPUT"
124 echo "EXPO_PRODUCTION_TOKEN is not available; skipping EAS production job."
125 fi
126β
127 - name: Checkout
128 if: steps.expo-token.outputs.present == 'true'
129 uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
130 with:
131 fetch-depth: 0
132 # No sparse-checkout here: it makes actions/checkout fetch with
133 # --filter=blob:none, and eas-cli archives the project via
134 # `git clone --depth 1 file://<workspace>`, which fails (exit 128)
135 # when the partial clone can't serve the unfetched blobs.
136β
137 - name: Setup Vite+
138 if: steps.expo-token.outputs.present == 'true'
139 uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb # v1.15.0
140 with:
141 node-version-file: package.json
142 cache: true
143 run-install: |
144 args:
145 - --filter=@t3tools/mobile...
146β
147 - name: Expose pnpm
148 if: steps.expo-token.outputs.present == 'true'
149 run: |
150 pnpm_version="$(node --print "require('./package.json').packageManager.split('@').pop()")"
151 vp_pnpm_bin="$HOME/.vite-plus/package_manager/pnpm/$pnpm_version/pnpm/bin"
152 echo "$vp_pnpm_bin" >> "$GITHUB_PATH"
153 "$vp_pnpm_bin/pnpm" --version
154β
155 - name: Setup EAS
156 if: steps.expo-token.outputs.present == 'true'
157 uses: expo/expo-github-action@c7b66a9c327a43a8fa7c0158e7f30d6040d2481e # v8.2.1
158 with:
159 eas-version: latest
160 token: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
161 # npm, not pnpm: this only installs eas-cli into the action's own
162 # tool dir, and pnpm 11 hard-fails that install on dtrace-provider's
163 # ignored build script (no allowBuilds config outside the repo).
164 packager: npm
165β
166 - name: Pull production environment variables
167 if: steps.expo-token.outputs.present == 'true'
168 working-directory: apps/mobile
169 env:
170 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
171 run: |
172 eas env:pull production --non-interactive
173 # EAS commands skip dotenv, and the Android fingerprint hashes this
174 # file. Without it every merge misses the build's hash and rebuilds.
175 node --input-type=module <<'NODE'
176 import { appendFileSync, readFileSync } from "node:fs";
177 import { parseEnv } from "node:util";
178 const env = parseEnv(readFileSync(".env.local", "utf8"));
179 const googleServicesFile = env.T3CODE_ANDROID_GOOGLE_SERVICES_FILE;
180 if (!googleServicesFile) {
181 throw new Error("T3CODE_ANDROID_GOOGLE_SERVICES_FILE is missing from the production environment");
182 }
183 appendFileSync(process.env.GITHUB_ENV, `T3CODE_ANDROID_GOOGLE_SERVICES_FILE=${googleServicesFile}\n`);
184 NODE
185β
186 # Only so the versions and fingerprints below are read from the tree that
187 # will be built. This job installs dependencies, so it gets no token that can
188 # push: the version job makes the same commit as the Release App afterwards.
189 - id: version_override
190 name: Apply manual version override
191 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'workflow_dispatch' && inputs.mode == 'build' && inputs.version != '' && inputs.profile != 'testflight'
192 env:
193 RELEASE_VERSION: ${{ inputs.version }}
194 run: |
195 node .github/scripts/set-mobile-version.cjs "$RELEASE_VERSION"
196 if ! git diff --quiet -- apps/mobile/app.config.ts; then
197 git -c user.name=mobile-version -c user.email=mobile-version@users.noreply.github.com \
198 commit --no-verify --quiet -m "chore(mobile): bump app version to $RELEASE_VERSION" -- apps/mobile/app.config.ts
199 fi
200 echo "applied=true" >> "$GITHUB_OUTPUT"
201β
202 - name: Summarize manual build version
203 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'workflow_dispatch' && inputs.mode == 'build'
204 working-directory: apps/mobile
205 env:
206 MOBILE_BUILD_PROFILE: ${{ inputs.profile || 'production' }}
207 run: |
208 if [ "$MOBILE_BUILD_PROFILE" = "testflight" ]; then
209 T3CODE_MOBILE_VERSION="$(node -p 'require("./eas.json").build.testflight.env.T3CODE_MOBILE_VERSION')"
210 export T3CODE_MOBILE_VERSION
211 fi
212 version="$(npx expo config --json --type public | jq -r '.version')"
213 {
214 echo "## Manual $MOBILE_BUILD_PROFILE build"
215 echo
216 echo "- App version: \`$version\`"
217 echo "- Platform: \`${{ inputs.platform }}\`"
218 echo
219 echo "> Apple closes an iOS release train after App Store approval. Before building iOS, confirm \`$version\` is newer than the approved App Store version."
220 } >> "$GITHUB_STEP_SUMMARY"
221β
222 - id: ios_manual
223 name: Queue iOS build (manual)
224 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'workflow_dispatch' && inputs.mode == 'build' && inputs.platform != 'android'
225 working-directory: apps/mobile
226 env:
227 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
228 MOBILE_BUILD_PROFILE: ${{ inputs.profile || 'production' }}
229 run: |
230 if [ "$MOBILE_BUILD_PROFILE" = "testflight" ]; then
231 T3CODE_MOBILE_VERSION="$(node -p 'require("./eas.json").build.testflight.env.T3CODE_MOBILE_VERSION')"
232 export T3CODE_MOBILE_VERSION
233 fi
234 version="$(npx expo config --json --type public | jq -r '.version')"
235 hash="$(eas fingerprint:generate --platform ios --environment production --json --non-interactive | sed -n '/^{/,$p' | jq -er '.hash | select(type == "string" and length > 0)')"
236 {
237 echo "ios_build=true"
238 echo "ios_profile=$MOBILE_BUILD_PROFILE"
239 echo "ios_fingerprint=$hash"
240 echo "ios_version=$version"
241 echo "ios_sha=$(git rev-parse HEAD)"
242 } >> "$GITHUB_OUTPUT"
243β
244 - id: android_manual
245 name: Queue Android build (manual)
246 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'workflow_dispatch' && inputs.mode == 'build' && inputs.platform != 'ios'
247 working-directory: apps/mobile
248 env:
249 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
250 run: |
251 version="$(npx expo config --json --type public | jq -r '.version')"
252 hash="$(eas fingerprint:generate --platform android --environment production --json --non-interactive | sed -n '/^{/,$p' | jq -er '.hash | select(type == "string" and length > 0)')"
253 {
254 echo "android_build=true"
255 echo "android_fingerprint=$hash"
256 echo "android_version=$version"
257 echo "android_sha=$(git rev-parse HEAD)"
258 } >> "$GITHUB_OUTPUT"
259β
260 # @expo/fingerprint swallows autolinking errors and returns no Expo module
261 # sources, so native changes stop moving the hash and OTAs reach binaries
262 # that lack them. Refuse to publish any OTA from such a fingerprint.
263 - name: Verify fingerprints hash Expo native modules
264 if: steps.expo-token.outputs.present == 'true' && (github.event_name == 'push' || inputs.mode == 'update')
265 working-directory: apps/mobile
266 env:
267 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
268 PLATFORM: ${{ inputs.platform || 'all' }}
269 run: |
270 if [ "$PLATFORM" = "all" ]; then platforms="ios android"; else platforms="$PLATFORM"; fi
271 failed=0
272 for platform in $platforms; do
273 # eas-cli prints an environment-loaded notice to stdout before the
274 # JSON even with --json, so discard everything before the document.
275 expo_modules="$(eas fingerprint:generate --platform "$platform" --environment production --json --non-interactive | sed -n '/^{/,$p' | jq --arg reason "expoAutolinking${platform^}" '[.sources[] | select((.reasons // []) | index($reason))] | length')"
276 if [ "${expo_modules:-0}" -eq 0 ]; then
277 failed=1
278 echo ":x: $platform: the native fingerprint hashes no Expo native modules β OTAs and builds skipped" >> "$GITHUB_STEP_SUMMARY"
279 fi
280 done
281 exit "$failed"
282β
283 - name: Publish OTA update (manual)
284 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'workflow_dispatch' && inputs.mode == 'update'
285 working-directory: apps/mobile
286 env:
287 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
288 MOBILE_BUILD_PROFILE: ${{ inputs.profile || 'production' }}
289 OTA_MESSAGE: ${{ inputs.message || format('Production OTA ({0})', github.sha) }}
290 run: |
291 if [ "$MOBILE_BUILD_PROFILE" = "testflight" ]; then
292 T3CODE_MOBILE_VERSION="$(node -p 'require("./eas.json").build.testflight.env.T3CODE_MOBILE_VERSION')"
293 export T3CODE_MOBILE_VERSION
294 fi
295 eas update \
296 --channel production \
297 --environment production \
298 --platform ${{ inputs.platform }} \
299 --message "$OTA_MESSAGE" \
300 --emit-metadata \
301 --non-interactive
302β
303 # Reconcile each version separately because the major is in the fingerprint.
304 # Production iOS only receives OTAs here; store binaries are manual releases.
305 # Failed prerelease builds are retried manually, not on every merge.
306 - id: reconcile
307 name: Publish OTA or cut store build
308 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'push'
309 working-directory: apps/mobile
310 env:
311 EXPO_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
312 run: |
313 failed=0
314 message="$(git log -1 --pretty=%s | head -c 120) ($(git rev-parse --short=9 HEAD))"
315 for target in ios:production ios:testflight android:production; do
316 platform="${target%%:*}"
317 profile="${target#*:}"
318 unset T3CODE_MOBILE_VERSION
319 if [ "$profile" = "testflight" ]; then
320 T3CODE_MOBILE_VERSION="$(node -p 'require("./eas.json").build.testflight.env.T3CODE_MOBILE_VERSION')"
321 export T3CODE_MOBILE_VERSION
322 fi
323 version="$(npx expo config --json --type public | jq -r '.version')"
324 # eas-cli prints an environment-loaded notice to stdout before the
325 # JSON even with --json, so discard everything before the document.
326 hash="$(eas fingerprint:generate --platform "$platform" --environment production --json --non-interactive | sed -n '/^{/,$p' | jq -er '.hash | select(type == "string" and length > 0)')"
327 matches="$(eas build:list --platform "$platform" --build-profile "$profile" --fingerprint-hash "$hash" --limit 20 --json --non-interactive)"
328 finished="$(jq '[.[] | select(.status == "FINISHED")] | length' <<<"$matches")"
329 active="$(jq '[.[] | select(.status == "NEW" or .status == "IN_QUEUE" or .status == "IN_PROGRESS")] | length' <<<"$matches")"
330 errored="$(jq '[.[] | select(.status == "ERRORED")] | length' <<<"$matches")"
331 latest_version="$(eas build:list --platform "$platform" --build-profile "$profile" --limit 1 --json --non-interactive | jq -r '.[0].appVersion // "none"')"
332 # Local builds (the android and ios jobs) record each build as a tag;
333 # EAS records still count for builds made before that.
334 if [ "$platform" = "android" ]; then
335 tag_prefix="mobile-android-build"
336 else
337 tag_prefix="mobile-ios-build/$profile"
338 fi
339 if [ -n "$(git tag -l "$tag_prefix/*/$hash")" ]; then
340 finished=$((finished + 1))
341 fi
342 if [ -n "$(git tag -l "$tag_prefix/$version/*")" ]; then
343 latest_version="$version"
344 fi
345β
346 if [ "$finished" -gt 0 ]; then
347 if eas update \
348 --channel production \
349 --environment production \
350 --platform "$platform" \
351 --message "$message" \
352 --emit-metadata \
353 --non-interactive; then
354 echo ":white_check_mark: $platform/$profile: OTA published to production (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
355 # The next target's export replaces dist; keep this one for the map upload.
356 rm -rf "dist-$platform-$profile" && mv dist "dist-$platform-$profile"
357 else
358 failed=1
359 echo ":x: $platform/$profile: OTA publish failed (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
360 fi
361 fi
362β
363 # Never rebuild the released iOS version automatically.
364 if [ "$target" = "ios:production" ]; then
365 continue
366 fi
367β
368 reason=""
369 if [ "$finished" -eq 0 ] && [ "$active" -eq 0 ]; then
370 if [ "$errored" -gt 0 ]; then
371 echo ":x: $platform/$profile: the build for fingerprint \`$hash\` errored β retry with workflow_dispatch mode=build profile=$profile platform=$platform" >> "$GITHUB_STEP_SUMMARY"
372 failed=1
373 continue
374 fi
375 reason="native fingerprint \`$hash\` has no build"
376 elif [ "$latest_version" != "$version" ] && [ "$active" -eq 0 ]; then
377 reason="latest $profile build is $latest_version, expected $version"
378 fi
379β
380 if [ -z "$reason" ]; then
381 if [ "$finished" -eq 0 ]; then
382 echo ":hourglass: $platform/$profile: build for fingerprint \`$hash\` is in progress β OTA resumes on the next merge after it finishes" >> "$GITHUB_STEP_SUMMARY"
383 fi
384 continue
385 fi
386β
387 echo "$platform: $reason β building"
388 if [ "$platform" = "android" ]; then
389 {
390 echo "android_build=true"
391 echo "android_fingerprint=$hash"
392 echo "android_version=$version"
393 echo "android_sha=$(git rev-parse HEAD)"
394 } >> "$GITHUB_OUTPUT"
395 echo ":building_construction: android: building and submitting $version in the Android store build job ($reason)" >> "$GITHUB_STEP_SUMMARY"
396 continue
397 fi
398 {
399 echo "ios_build=true"
400 echo "ios_profile=$profile"
401 echo "ios_fingerprint=$hash"
402 echo "ios_version=$version"
403 echo "ios_sha=$(git rev-parse HEAD)"
404 } >> "$GITHUB_OUTPUT"
405 echo ":building_construction: ios/$profile: building and submitting $version in the iOS store build job ($reason)" >> "$GITHUB_STEP_SUMMARY"
406 done
407 exit "$failed"
408β
409 # Lets the relay symbolicate crash stacks from the updates published
410 # above. A step of its own so the R2 credentials reach only this script,
411 # not `eas update` and the dependencies it runs. Never fails the job.
412 - name: Upload OTA source maps
413 if: ${{ !cancelled() && steps.expo-token.outputs.present == 'true' }}
414 working-directory: apps/mobile
415 env:
416 MOBILE_SOURCEMAPS_R2: ${{ secrets.MOBILE_SOURCEMAPS_R2 }}
417 run: |
418 for dir in dist dist-*; do
419 if [ -f "$dir/eas-update-metadata.json" ]; then
420 node scripts/upload-sourcemaps.mts ota "$dir"
421 fi
422 done
423β
424 # Commits a store version override as the Release App. It installs nothing and
425 # runs no dependency code, so that token never shares a runner with any. It
426 # runs after the production job so the push's own run queues behind this one.
427 version:
428 name: Commit version override
429 needs: production
430 if: ${{ !cancelled() && needs.production.result == 'success' && needs.production.outputs.version_override == 'true' }}
431 runs-on: blacksmith-2vcpu-ubuntu-2404
432 timeout-minutes: 5
433 permissions:
434 contents: read
435 outputs:
436 sha: ${{ steps.commit.outputs.sha }}
437 steps:
438 # No owner input: the token covers this repository only, with contents write.
439 - id: app_token
440 name: Mint release app token
441 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
442 with:
443 app-id: ${{ secrets.RELEASE_APP_ID }}
444 private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
445 permission-contents: write
446β
447 - name: Checkout
448 uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
449 with:
450 token: ${{ steps.app_token.outputs.token }}
451β
452 - id: commit
453 name: Commit and push the version
454 env:
455 GH_TOKEN: ${{ steps.app_token.outputs.token }}
456 APP_SLUG: ${{ steps.app_token.outputs.app-slug }}
457 RELEASE_VERSION: ${{ inputs.version }}
458 run: |
459 node .github/scripts/set-mobile-version.cjs "$RELEASE_VERSION"
460 if git diff --quiet -- apps/mobile/app.config.ts; then
461 echo "app.config.ts is already at $RELEASE_VERSION; no version commit needed."
462 else
463 user_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"
464 git config user.name "${APP_SLUG}[bot]"
465 git config user.email "${user_id}+${APP_SLUG}[bot]@users.noreply.github.com"
466 git add apps/mobile/app.config.ts
467 git commit --no-verify -m "chore(mobile): bump app version to $RELEASE_VERSION"
468 git push origin "HEAD:refs/heads/${GITHUB_REF_NAME}"
469 fi
470 echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
471β
472 # Each store build runs in mobile-eas-production-build.yml, whose record job
473 # alone gets the token that pushes the tag. The group covers both of its jobs,
474 # and being its own group keeps later OTAs from waiting on a build.
475 android:
476 name: Android store build
477 needs: [production, version]
478 # Skipped when the production job failed: no store build after a failed OTA.
479 # The version job is skipped unless there is an override.
480 if: ${{ !cancelled() && needs.production.result == 'success' && needs.version.result != 'failure' && needs.production.outputs.android_build == 'true' }}
481 concurrency:
482 group: mobile-android-store-build
483 cancel-in-progress: false
484 permissions:
485 contents: write # the record job pushes the build record tag
486 uses: ./.github/workflows/mobile-eas-production-build.yml
487 with:
488 platform: android
489 profile: production
490 sha: ${{ needs.version.outputs.sha || needs.production.outputs.android_sha }}
491 tag: mobile-android-build/${{ needs.production.outputs.android_version }}/${{ needs.production.outputs.android_fingerprint }}
492 secrets:
493 EXPO_PRODUCTION_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
494 MOBILE_SOURCEMAPS_R2: ${{ secrets.MOBILE_SOURCEMAPS_R2 }}
495β
496 ios:
497 name: iOS store build
498 needs: [production, version]
499 # Skipped when the production job failed: no store build after a failed OTA.
500 # The version job is skipped unless there is an override.
501 if: ${{ !cancelled() && needs.production.result == 'success' && needs.version.result != 'failure' && needs.production.outputs.ios_build == 'true' }}
502 concurrency:
503 group: mobile-ios-store-build
504 cancel-in-progress: false
505 permissions:
506 contents: write # the record job pushes the build record tag
507 uses: ./.github/workflows/mobile-eas-production-build.yml
508 with:
509 platform: ios
510 profile: ${{ needs.production.outputs.ios_profile }}
511 sha: ${{ needs.version.outputs.sha || needs.production.outputs.ios_sha }}
512 tag: mobile-ios-build/${{ needs.production.outputs.ios_profile }}/${{ needs.production.outputs.ios_version }}/${{ needs.production.outputs.ios_fingerprint }}
513 secrets:
514 EXPO_PRODUCTION_TOKEN: ${{ secrets.EXPO_PRODUCTION_TOKEN }}
515 MOBILE_SOURCEMAPS_R2: ${{ secrets.MOBILE_SOURCEMAPS_R2 }}