Skip to content

Instantly share code, notes, and snippets.

@r3dm1ke
Last active February 26, 2020 18:07
Show Gist options
  • Select an option

  • Save r3dm1ke/b169093e3cd0d87591621f8242795ac8 to your computer and use it in GitHub Desktop.

Select an option

Save r3dm1ke/b169093e3cd0d87591621f8242795ac8 to your computer and use it in GitHub Desktop.
name: Preview on Expo
on: [pull_request]
jobs:
publish:
name: Install and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: expo/expo-github-action@v5
with:
expo-version: 3.x
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
expo-packager: npm
- run: npm ci
- run: expo publish --release-channel=pr-${{ github.event.number }}
- uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: App is ready for review, you can [see it here](https://exp.host/@${{ secrets.EXPO_CLI_USERNAME }}/YOUR_APP_SLUG_HERE?release-channel=pr-${{ github.event.number }}).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment