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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With