Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass environment variables to the build step ? #10

Open
vipulw2011 opened this issue Mar 2, 2023 · 1 comment
Open

How to pass environment variables to the build step ? #10

vipulw2011 opened this issue Mar 2, 2023 · 1 comment

Comments

@vipulw2011
Copy link

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 ?

@paschaldev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants