Skip to content

Environment variables

Secrets belong in the environment, not in files in your repo. Variables marked “redacted” are replaced with *** in all output.

VariableUsed forRedacted
MATCH_GIT_URLMatch repo URL (iOS signing, init). Must not contain credentialspassword or token inside the URL, if any
MATCH_PASSWORDMatch encryption password. CI sets it. Locally it is optional: when unset, fastlane match (and rn-shipyard’s checks) use the macOS keychain item match_<git url>, which init can save for you (in a terminal, or from this variable with init --save-match-password)yes
APPLE_TEAM_IDApple Developer Team IDno
MATCH_GIT_BASIC_AUTHORIZATIONbase64 of user:token for an HTTPS Match repoyes, and the decoded value
MATCH_GIT_BEARER_AUTHORIZATIONBearer token for the Match repoyes
MATCH_KEYCHAIN_PASSWORDKeychain password for Matchyes
MATCH_GIT_PRIVATE_KEYPrivate key for the Match repoyes
APP_STORE_CONNECT_API_KEY_KEY_IDApp Store Connect API key IDno
APP_STORE_CONNECT_API_KEY_ISSUER_IDApp Store Connect issuer IDno
APP_STORE_CONNECT_API_KEY_KEYAPI key contents (the .p8 text)yes
APP_STORE_CONNECT_API_KEY_KEY_FILEPATHPath to the .p8 fileno
FASTLANE_USERApple ID for submitno
FASTLANE_PASSWORDApple ID passwordyes
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORDApp-specific passwordyes
FASTLANE_SESSIONFastlane session cookieyes
ANDROID_KEYSTORE_PASSWORDAndroid keystore passwordyes
ANDROID_KEY_PASSWORDAndroid key password (defaults to the keystore password)yes
SUPPLY_JSON_KEYPath to the Google Play service account JSON (overrides eas.json)no
SUPPLY_JSON_KEY_DATAService account JSON contentsyes
VariableEffect
NO_COLORAny non-empty value turns colour off (also on a terminal, and over FORCE_COLOR). Output is also plain when stdout is not a terminal (piped, redirected), including the history table. FORCE_COLOR turns it on

These EAS names are accepted by doctor, init, build and submit. rn-shipyard copies each one that is set onto the Fastlane name for all child processes. If the Fastlane name is also set (non-empty), the Fastlane name wins. EXPO_APPLE_PASSWORD and EXPO_APPLE_APP_SPECIFIC_PASSWORD are redacted like their Fastlane counterparts.

EXPO_APPLE_TEAM_ID becomes FASTLANE_TEAM_ID, which Fastlane reads. The default Team ID that init offers still comes from eas.json (appleTeamId) or APPLE_TEAM_ID.

EAS nameFastlane name
EXPO_APPLE_IDFASTLANE_USER
EXPO_APPLE_PASSWORDFASTLANE_PASSWORD
EXPO_APPLE_APP_SPECIFIC_PASSWORDFASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD
EXPO_APPLE_TEAM_IDFASTLANE_TEAM_ID
EXPO_ASC_API_KEY_PATHAPP_STORE_CONNECT_API_KEY_KEY_FILEPATH
EXPO_ASC_KEY_IDAPP_STORE_CONNECT_API_KEY_KEY_ID
EXPO_ASC_ISSUER_IDAPP_STORE_CONNECT_API_KEY_ISSUER_ID

The three *_ASC_* / APP_STORE_CONNECT_API_KEY_* names also let build read the latest TestFlight build number for the iOS build number counter. build also reads them from eas.json submit.<profile>.ios (ascApiKeyPath, ascApiKeyId, ascApiKeyIssuerId).

rn-shipyard prompts only when stdin and stdout are both a terminal and none of --json, --non-interactive or CI is set. If CI is set to anything except 0 or false, it behaves as if --non-interactive was passed, so a CI runner with a pseudo-terminal never waits on a prompt.

Every piped child process (expo prebuild, npx expo config, fastlane, the build and submit lanes, non-interactive git and fastlane match) gets no stdin and these variables. This is the case in interactive runs too. Only the steps that run on your own terminal (see CI and scripting) are left alone.

VariableValue
CI1
FASTLANE_IS_INTERACTIVEfalse
SPACESHIP_ONLY_ALLOW_INTERACTIVE_2FAtrue
GIT_TERMINAL_PROMPT0
GIT_ASKPASS, SSH_ASKPASStrue
SSH_ASKPASS_REQUIREnever
GCM_INTERACTIVEnever

The non-interactive Match clone and init’s non-interactive fastlane match also run with ssh -o BatchMode=yes and a connect timeout, detached from the terminal.

For the iOS build lane rn-shipyard also sets GIT_CONFIG_COUNT, GIT_CONFIG_KEY_<n> and GIT_CONFIG_VALUE_<n> so that git reads your Match repo URL from the local clone (url.<clone>.insteadOf). Match keeps your real URL, so the passphrase it stored in the keychain is still found. Pairs already set in your shell are kept; the new one is appended after them.

Android signing passwords reach Gradle as ORG_GRADLE_PROJECT_android.injected.signing.*. These are set for the child process only.

The env of the selected eas.json build profile (including extends) is applied to config evaluation, prebuild and Fastlane. .env is loaded the way expo prebuild loads it. See Dynamic config.

A profile cannot set the names rn-shipyard owns. These are ignored with a warning:

  • every variable marked redacted above, plus EXPO_APPLE_PASSWORD, EXPO_APPLE_APP_SPECIFIC_PASSWORD, ORG_GRADLE_PROJECT_android.injected.signing.store.password and ORG_GRADLE_PROJECT_android.injected.signing.key.password
  • MATCH_GIT_URL
  • any name starting with SHIPYARD_
  • GIT_CONFIG_COUNT, GIT_CONFIG_PARAMETERS, anything starting with GIT_CONFIG_KEY_ or GIT_CONFIG_VALUE_ (the git redirect to the local Match clone is built from them)
  • the variables in “Set by rn-shipyard for child processes” (CI, FASTLANE_IS_INTERACTIVE, SPACESHIP_ONLY_ALLOW_INTERACTIVE_2FA, GIT_TERMINAL_PROMPT, GIT_ASKPASS, SSH_ASKPASS, SSH_ASKPASS_REQUIRE, GCM_INTERACTIVE)
  • any name starting with ORG_GRADLE_PROJECT_android.injected.signing.

These names are applied but warned about, because they change how tools run: PATH, NODE_OPTIONS, RUBYOPT, GIT_SSH_COMMAND, BUNDLE_GEMFILE and anything starting with DYLD_. Values must be strings, numbers or booleans (numbers and booleans are converted); other values are dropped with a warning.

rn-shipyard is an independent open-source project, not affiliated with or endorsed by Expo. Expo and EAS are trademarks of 650 Industries, Inc.