Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/mobile-eas-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,14 @@ jobs:
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
with:
profile: preview:dev
# Release configuration, not `preview:dev`: PR builds must show
# production-grade performance and memory behaviour. The dev-client
# `preview:dev` profile stays available for local Metro attachment.
profile: preview
branch: pr-${{ github.event.pull_request.number }}
platform: all
# iOS only: Android has no signing keystore configured, so including
# it fails the job before the iOS artifact is published.
platform: ios
environment: preview
working-directory: apps/mobile
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion apps/mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ The native lint task runs SwiftLint for Swift plus ktlint and detekt for Kotlin.

## EAS Builds

CI uses Expo fingerprinting with the `preview:dev` profile to reuse an existing compatible build when possible, or start a new internal EAS build when native runtime inputs change. Production and default local builds continue to use the `appVersion` runtime policy.
CI uses Expo fingerprinting with the `preview` profile to reuse an existing compatible build when possible, or start a new internal EAS build when native runtime inputs change. That profile builds the release configuration, so labelled PR builds behave like production for performance and memory; use `preview:dev` when you want a dev client on the preview channel that attaches to local Metro. Production and default local builds continue to use the `appVersion` runtime policy.

For preview or production EAS environments, set `T3CODE_CLERK_PUBLISHABLE_KEY`,
`T3CODE_CLERK_JWT_TEMPLATE`, and `T3CODE_RELAY_URL`
Expand Down
6 changes: 5 additions & 1 deletion apps/mobile/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
"corepack": true,
"env": {
"APP_VARIANT": "preview",
"MOBILE_VERSION_POLICY": "fingerprint",
"NODE_OPTIONS": "--max-old-space-size=4096"
},
"channel": "preview",
"environment": "preview",
"distribution": "internal"
"distribution": "internal",
"android": {
"buildType": "apk"
}
},
"preview:dev": {
"corepack": true,
Expand Down
Loading