Install env-cmd on github

1.9k Views Asked by At

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

1

There are 1 best solutions below

3
xandermonkey On BEST ANSWER

Have you installed it before trying to call it? npm install env-cmd or npm install -g env-cmd.

https://www.npmjs.com/package/env-cmd