Releasing to the Stores
The version users see comes from package.json, the same on the web, Android and iOS. The build number is shared by both native apps and must go up with every store upload.
- Describe each change as you make it with
pnpm changeset. When a release is due,pnpm release:versionraises the version and writesCHANGELOG.md. Skip this to upload another build of the same version, for example to TestFlight. - Run
pnpm mobile:release. Throughinglorious-capacitor version, it copies the version into both native projects and raises the build number; then it builds with the production values in.env(ignoring.env.local), and syncs. Commit what it changed. - Upload:
- Xcode: Product → Archive, then Distribute App → Custom → App Store Connect → Upload, and untick Manage Version and Build Number so the store gets the project's build number.
- Android Studio: Build → Generate Signed App Bundle, then upload it in Play Console.
Or skip steps 2 and 3 with Cloud Builds, which do them on GitHub Actions.
The App Store takes versions of up to three numbers, so keep the version MAJOR.MINOR.PATCH, with no pre-release tag.
Before the first release, check the Store Requirements and make the listing images. Once a build is live, consider making it mandatory.
