Replies: 1 comment
-
There's a whole section on action variables here: https://docs.github.com/en/actions/learn-github-actions/variables |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a React front-end project. For visiting back-end server, I have an API key. When developing, I set an environment variable named REACT_APP_API_KEY, and refer it in my javascript code as
process.env.REACT_APP_API_KEY
. It works fine locally (when I runnpm start
).But now I would like to deploy it on GitHub Pages. I have added the key as a secret in my GitHub repository (just like access token). But how can I set the enviroment variable?
Beta Was this translation helpful? Give feedback.
All reactions