2

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

Hiimdjango
  • 431
  • 5
  • 21

1 Answers1

3

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

xandermonkey
  • 4,054
  • 2
  • 31
  • 53