Skip to content

Instantly share code, notes, and snippets.

@oliviayizhang
Last active May 21, 2019 19:27
Show Gist options
  • Save oliviayizhang/6100f18e1d6ca64ae56bdb0b5422e3b7 to your computer and use it in GitHub Desktop.
Save oliviayizhang/6100f18e1d6ca64ae56bdb0b5422e3b7 to your computer and use it in GitHub Desktop.
Part of our CircleCI configuration for hashphrase
...other settings are omitted for brevity
- run:
name: Login into Expo
command: npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
- run:
name: Save current branch name to an env variable
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
echo 'export EXPO_RELEASE_CHANNEL="default"' >> $BASH_ENV
else
echo 'export EXPO_RELEASE_CHANNEL=$CIRCLE_BRANCH' >> $BASH_ENV
fi
- run:
name: Publish to Expo
command: npx expo publish --non-interactive --max-workers 1 -- release-channel $EXPO_RELEASE_CHANNEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment