[Mobile] Automated builds to TestFlight / Play internal testing and scripted releases
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, nodejs, react-native
- Lĩnh vực
- build-system, ci-cd, mobile, release
Hướng nghiên cứu
Start with mobile/eas.json, mobile/app.config.ts and the scripts block in mobile/package.json, then read where mobile/scripts/build.js and mobile/scripts/release.js would fit. The work depends on store credentials that a newcomer will not have, so begin with the dry-run and safety-gate logic that can be checked without them. Done means npm run build and npm run release --dry-run run with no store writes, and a production artifact that contains the staging API host is rejected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Set up the same build and release flow we use on our other Expo apps, so a build goes to testers without manual steps and a release is one command.
Scope
npm run build(mobile/scripts/build.js): pick a preset (env + platform), bump version / build numbers, build with EAS, upload the result:- Android
.aabto Google Play internal testing (trackinternal, statuscompleted); - iOS
.ipato TestFlight. - Presets for
android-production-upload,ios-production-upload,both-production-uploadand a preview APK for direct install. - Artifacts named
vic-<version>-<platform><build>-<profile>.<ipa|aab|apk>, with a git tagv<version>-<platform><build>per uploaded build.
- Android
npm run release(mobile/scripts/release.js): promote an already uploaded production build to the Play production track (staged rollout 20 / 50 / 100 %) and submit the App Store version for review, with release notes drafted from the commits since the previous build tag.--dry-runprints every store write;--watchpolls both stores until the release is live.- Safety gates before any store write: only
productionprofile artifacts, the JS bundle must contain the production API host and must not contain the staging one, the store must already know the build, and an explicit confirmation phrase.
- Safety gates before any store write: only
npm run update -- <channel> "<message>": EAS Update (OTA) to thedevelopment,stagingandproductionchannels.- Optional: a GitHub Actions workflow that runs the build + upload on a tag / manual dispatch, using the same scripts and the secrets below.
- Clean up
mobile/eas.json: fillsubmit.production(iOSascAppId, Android trackinternal) and drop the Cognito env vars once own auth ships.
Keys and access to configure
Accounts are owned by Commit Global; Tribus needs the access below. Local files go in mobile/_serviceKeys/ (gitignored); in CI they become repository secrets.
Apple
- App Store Connect API key (
.p8) with App Manager role or above, plus its Key ID and Issuer ID. With it, EAS also manages the distribution certificate and provisioning profile without an Apple login. - Apple Team ID of the Commit Global developer account.
- The app's Apple ID in App Store Connect (
ascAppIdineas.json). - TestFlight internal testers group (Tribus + Commit Global).
- Google Cloud service account JSON key, invited in Play Console → Users and permissions with release rights on the VIC app.
- Play Console: the first
.aabmust already be uploaded by hand (it is, for the current app); internal testing track with the tester list. -
google-services.json(Firebase) for Android push, if push stays on Firebase.
Expo / other
-
EXPO_TOKEN(robot token) for the Commit Global Expo account / VIC project, for CI builds and EAS Update. -
SENTRY_AUTH_TOKEN, if we upload source maps and dSYMs to Sentry. -
stores.jsonin_serviceKeys/:{ "ascKeyId": "…", "ascIssuerId": "…", "appleTeamId": "…" }.
Acceptance criteria
-
npm run buildinmobile/builds with EAS and uploads Android to Play internal testing and iOS to TestFlight, without manual steps once keys are in_serviceKeys/. -
npm run releasepromotes an uploaded production build (Play staged rollout, App Store review) and--dry-runperforms no store writes. - A production artifact containing the staging API host is rejected before any store write.
-
mobile/scripts/README.mddocuments commands and the one-time key setup. - No secret is committed;
_serviceKeys/and artifacts are gitignored.
Dependencies
Phase 0. No blockers.
Where to look
mobile/eas.jsonmobile/app.config.tsmobile/package.json
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 2
- Merge trung bình
- 18 phút
- Pull request đã merge (30 ngày)
- 118
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của code4romania/vic
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code4romania/vic#638 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
code4romania/vic#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
code4romania/vic#637 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-info vic-2.0
Độ khó 4/5 Nửa ngày Mức phù hợp với người mới 25/100
code4romania/vic#563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-ready back-end enhancement :rocket: mobile-app vic-2.0 web-app
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
code4romania/vic#512 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của code4romania/vic
Issue tương tự
-
bug platform:mobile root-cause:found
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openchamber/openchamber#6926 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
push-based/user-flow#356 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Cygnux-Labs/Tracekit#827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
www build: a refused import shows only "ENOENT scandir <outDir>", never the build-audience errorĐang mởkind:defect
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightgauge/nightgauge#3266 ·
Maintainer thường phản hồi trong vòng 1 ngày