Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 0b407cb

Browse files
authored
publish to expo on PRs
1 parent 850e9cd commit 0b407cb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/review.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,25 @@ jobs:
5858
working-directory: example
5959
env:
6060
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
61+
62+
expo-publish:
63+
name: Publish to Expo 🚀
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v2
67+
- uses: actions/setup-node@v1
68+
with:
69+
node-version: 12.x
70+
- uses: expo/expo-github-action@v5
71+
with:
72+
expo-version: 3.x
73+
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
74+
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
75+
- run: npx yarn bootstrap
76+
- run: expo publish --release-channel=pr-${{ github.event.number }}
77+
working-directory: example
78+
- uses: unsplash/comment-on-pr@master
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
with:
82+
msg: App is ready for review, you can [see it here](https://expo.io/@daniakash/use-expo?release-channel=pr-${{ github.event.number }}).

0 commit comments

Comments
 (0)