Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install env-cmd on github

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

like image 448
Hiimdjango Avatar asked Apr 09 '26 08:04

Hiimdjango


1 Answers

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

like image 107
xandermonkey Avatar answered Apr 12 '26 00:04

xandermonkey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!