Last active
May 21, 2019 19:27
-
-
Save oliviayizhang/6100f18e1d6ca64ae56bdb0b5422e3b7 to your computer and use it in GitHub Desktop.
Part of our CircleCI configuration for hashphrase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...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