Skip to content

Release pipeline 1/7: Release on merge #258

Open

Description

@morepriyam

Part of #255 (release pipeline), phase 1 of 7.

Depends on: Notes inputs in mieweb/actions (TestFlight changelog, Play release notes)
Estimated size: ~800–1,100 lines
Done when: Merging a version bump to main produces TestFlight and Play internal builds with tester notes, an app-vX tag that says which platforms shipped, a GitHub Release with the APK, TestFlight link and notes, an updated compatibility page and About page What's New, with no manual step.

  • Make the iOS and Android build workflows reusable (workflow_call). Manual dispatch still works for rebuilds.
  • Build numbers from the stores, not from run numbers. A called workflow sees the caller's run number, so moving the builds under release.yml would restart iOS build numbers and Android versionCodes near 1. Android would land below the 20236 already on Play and be rejected. Use the stores as the source: fastlane latest_testflight_build_number + 1 for iOS, and the highest versionCode across Play tracks (google_play_track_version_codes) + 1 for Android. This also drops the hand-maintained versionCode base from app.json.
  • release.yml: on a push to main whose app.json version has no app-v* tag, build both platforms, tag app-v<version> only after both succeed, create a GitHub Release with generated notes, and rebuild Pages. Today each build workflow (build-ios-from-expo.yml, build-android-from-expo.yml) tags on its own and dispatches deploy-pages.yml.
  • Confirm the compatibility page output is identical before and after.
  • Release notes, part 1 (see the Release notes section in Release pipeline: one-merge releases, tests against every supported app version, and store status checks #255): PR template with Release note: and Test: lines; release-notes/<version>.md; scripts/draft-release-notes.mjs; CI check for sections and limits.
  • release.yml sends ## What to test to TestFlight "What to Test" and Play internal release notes. The shared actions accept no notes today: add a changelog input to mieweb/actions/sign-archive-upload-ios (TestFlight) and a release_notes input to publish-android-to-play, or call fastlane directly.
  • Seed release-notes/2.2.2.md with the notes written for the first manual public release (2.0.0 → 2.2.2).
  • Release notes, PR comments: the running draft on every PR, and paste-ready App Store / Google Play / TestFlight blocks on the release PR.
  • About page "What's New": done in Show build release notes and five previous releases on the version screen #330 another way. scripts/release-notes.ts builds the notes when Expo reads its config (app.config.ts) from the app-vX.Y.Z tags and PR/commit titles reachable from the build commit, and the About page shows the installed build's notes plus the five previous releases, offline. Both build workflows fetch the full history and tags before prebuild. It does not read release-notes/<version>.md.
  • Permission allowlist: CI builds the merged Android release manifest (./gradlew :app:processReleaseMainManifest, as done for fix(android): drop READ_MEDIA_* for the system photo picker (Play photo/video policy); release 2.2.3 (Android only) #257) and compares its uses-permission list with android-permissions.json in the repo; a new permission fails the PR until it's added there with a reason. iOS: the same for the Info.plist usage-description keys. Play's READ_MEDIA_* block (fix(android): drop READ_MEDIA_* for the system photo picker (Play photo/video policy); release 2.2.3 (Android only) #257) would have failed on the PR instead of at review.
  • Platform-only releases are visible: the GitHub Release for app-vX lists which platforms shipped (2.2.3 was Android only), and the compatibility page shows per-platform availability instead of assuming both platforms shipped every tag.
  • Each GitHub Release lists what testers need to identify the build: TestFlight build number, Play versionCode, pinned PulseVault version and protocol range, and the PRs since the previous app-v* tag.
  • Android download on each Release: a universal APK generated from the signed AAB with bundletool, attached as a file. Play re-signs its own installs with Google's key, so switching between the GitHub APK and the Play build is expected to need an uninstall (Play signing setup not checked yet).
  • iOS on each Release: the TestFlight build number and the TestFlight public link. An App Store-signed .ipa only installs through TestFlight or the App Store, so it isn't attached. Needs a one-time setup in App Store Connect: an external testing group with a public link.
  • Optional: attach the iOS dSYMs for crash symbolication.
  • Backfill GitHub Releases for the existing app-v* tags (app-v2.1.0 through app-v2.9.2 today). Pulse has app tags but no app Releases; the only GitHub Releases are PulseKit's (pulsekit-v*, from release-embed.yml).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions