The short answer
With Expo, one command can build and submit both apps:
eas build --platform all --profile production --auto-submit
For it to be safe to run without thinking, three things must be true: build numbers come from EAS (appVersionSource: "remote" with autoIncrement), signing keys live in EAS, and the submit profile knows where each store build goes. Wrap it in a script that pulls the latest code, checks the Android keystore and asks once before building.
Here is the setup behind RPMVault's mobile app.
The apps this script ships are on RPMVault's apps page, with links to both stores.
1. The eas.json that makes it possible
Most of the work is in eas.json, not in the script:
"appVersionSource": "remote": EAS keeps the iOS build number and Android version code. No more editingapp.jsonfor every build, and no more "this build number was already used" rejections."autoIncrement": trueon the production profile: every production build takes the next number.- A submit profile that sends iOS builds to the right App Store Connect app and Android builds to the
productiontrack on Google Play. - Environments and update channels per profile, so a preview build can never pick up production secrets or production over-the-air updates.
The human-facing version, the one in the store listing, stays in app.json as expo.version. Raising it is the one manual step for a new release.
2. The script, step by step
The release runs on a Mac with one line: git pull && bash mobile/scripts/release-mac.sh. The script:
- stops on the first error (
set -euo pipefail); - pulls with
--ff-only, so it never builds a merge nobody reviewed; - installs pnpm if the machine does not have it, then installs dependencies;
- runs the latest
eas-clithroughnpx, so there is no global CLI to keep up to date, and logs in only if needed; - opens the Android credentials screen and asks you to check the keystore (more on that below);
- asks one question with the version number in it: release this version to production? Anything but "y" stops with "Nothing was built";
- runs the build with auto-submit for both platforms;
- prints what happens next on each store.
The builds themselves run on EAS's servers, so the Mac does not need Xcode signing set up or an Android keystore on disk.
3. The one check that matters: the Android keystore
Google Play only accepts updates signed with the same upload key as before. If EAS does not find a keystore for the production profile, it offers to generate a new one, and a build signed with that new key will be rejected by Play. On a fresh machine or a new Expo account, it is an easy mistake to make in one keypress.
So before anything is built, the script opens eas credentials -p android and says it plainly: check that the production profile already has the upload keystore, and do not create a new one. Only then does it ask to continue.
A related trap: if you ever uploaded a locally built AAB to Play, its version code may be ahead of EAS's remote counter. Check eas build:version:get -p android once, and set it past the last Play version code if needed.
4. What still needs a human
- Android goes to the production track automatically and is live after Google Play's review.
- iOS is only uploaded. In App Store Connect you still create the version, attach the build, write release notes and press Submit for Review.
I am fine with that last step being manual. Release notes and the moment of submission are decisions, not chores.
Common questions
Can EAS submit to the App Store automatically?
EAS uploads the build to App Store Connect. Submitting it for review is a separate step in App Store Connect.
How do I stop "build number already used" errors with Expo?
Set appVersionSource to remote in eas.json and autoIncrement on the production profile. EAS then assigns a fresh number to every build.
Do I need a Mac to build iOS with Expo?
Not for the build itself, which runs in the cloud. RPMVault's release script is written for a Mac, but the EAS command works from any machine.
What I learned
Put the knowledge in config, not memory. Remote version numbers and submit profiles removed most of what I used to forget.
Make the dangerous step loud. One clear warning about the keystore is worth more than a page of documentation nobody reads during a release.
Ask once, with the facts. A single confirmation that shows the version number catches the most common mistake: releasing the version you meant to bump.