instamobile / recipes-app-react-native

Recipes App in React Native
https://instamobile.io
MIT License
769 stars 252 forks source link

Working GH Action to build/update/preview #41

Closed michaelachrisco closed 1 year ago

michaelachrisco commented 1 year ago

The repo was a nice find. I really like the patterns you and your team have put together here.

I figured I would contribute back to your project. I created a GH Action based off of https://github.com/expo/expo-github-action. It also double checks the app can be built. Feel free to use if you wish.

When a user creates a Pull Request, the GH Action will create a preview build which can be downloaded via Expo Go for testing purposes. In order to get this action to work, one has to:

  1. Create expo token described here: https://github.com/expo/expo-github-action#create-new-eas-update-on-push-to-main
  2. Adjust Actions -> "Workflow permissions" in the repo settings to: "Read and Write permissions". Alternatively, you can add in those rights within the GH Action itself.

Working GH Action and example after updating dependencies: https://github.com/michaelachrisco/recipes-app-react-native/pull/2

Thanks again for the example project!

michaelachrisco commented 1 year ago

Its been a couple of months. Im going to close this one.