Github-Actions-React-Native
Github-Actions-React-Native copied to clipboard
How to pass environment variables to the build step ?
There are cases when we have env files and we need to pass those values on github actions before build. How do we achieve that ?
@vipulw2011 I've not tested this out for react native but I've done something similar and it works like this...
- Save environment variable in Github Repository Settings -> Secrets & Variables
- You can access the environment variable within the Github action file with
${{ env.VARIABLE_NAME }}