Github-Actions-React-Native icon indicating copy to clipboard operation
Github-Actions-React-Native copied to clipboard

How to pass environment variables to the build step ?

Open vipulw2011 opened this issue 1 year ago • 1 comments

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 avatar Mar 02 '23 13:03 vipulw2011

@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 }}

paschaldev avatar Oct 06 '23 00:10 paschaldev