Submitting to Google Play
rn-shipyard submit --platform android uploads the latest successful .aab with Fastlane supply.
Create the service account
Section titled “Create the service account”- In Google Cloud, create a service account in a project and create a JSON key for it.
- In Play Console, open Users and permissions, invite the service account’s email and give it access to your app, with permission to manage releases.
- Save the JSON key outside your repo.
Google’s setup screens change. If a step does not match, follow Google’s current “set up API access” guide.
Create the app and upload the first release by hand in Play Console. The API only works on an app that already exists.
Point rn-shipyard at the key
Section titled “Point rn-shipyard at the key”In order of precedence:
SUPPLY_JSON_KEY, the path to the JSON file.submit.<profile>.android.serviceAccountKeyPathineas.json.serviceAccountKeyPathin.shipyard/config.json.
export SUPPLY_JSON_KEY=~/secrets/play-service-account.jsonrn-shipyard submit --platform androidIf none is set, Android is skipped with a message and the other platform still submits.
Never commit the key. Keep the file outside the repo.
Track and release status
Section titled “Track and release status”Set them in eas.json:
{ "submit": { "production": { "android": { "serviceAccountKeyPath": "../secrets/play-service-account.json", "track": "internal", "releaseStatus": "draft" } } }}Defaults are internal and draft. A draft release needs you to roll it out in Play Console.
Dry run
Section titled “Dry run”rn-shipyard submit --platform android --dry-runIt checks the artifact and the service account, prints the Fastlane command and uploads nothing.
rn-shipyard is an independent open-source project, not affiliated with or endorsed by Expo. Expo and EAS are trademarks of 650 Industries, Inc.