I'm manually setting up the environment variable depending what build I'am using ( QA or PROD ) and I'm using github actions to deploy my qa build..
So change the script from npm run build
to env-cmd -f ./.env.qa node scripts/build.js
.
The problem is env-cmd
is not installed on github and I can't seem to find the github action to install it. For now when it tries to build it says env-cmd: not found
Asked
Active
Viewed 1,620 times
2

Hiimdjango
- 431
- 5
- 21
1 Answers
3
Have you installed it before trying to call it? npm install env-cmd
or npm install -g env-cmd
.

xandermonkey
- 4,054
- 2
- 31
- 53
-
I am trying to install it on github actions not on my computer – Hiimdjango Jul 08 '20 at 19:26
-
Yeah I understand - you can install it there, just make a workflow step that runs the `npm install` – xandermonkey Jul 08 '20 at 19:28
-
Ahh I'm already doing the npm install before the build – Hiimdjango Jul 08 '20 at 19:34