Closed crisperit closed 1 year ago
Hi @crisperit ! You are absolutely right, we shouldn't need a package.json to install netlify-cli.
Your issue actually references an issue I opened a while ago, GitHub pre-installs these cli tools on their ubuntu-latest distribtions (maybe macos and windows too?): https://github.com/jsmrcaga/action-netlify-deploy/issues/35 . Sadly I haven't taken the time to test it out.
Would you be willing to fork this repo and give that a try? It might mean migrating away from docker-actions and just creating a composite action though
OK, I can give a try
Thanks @crisperit ! Let me know how it goes!
I've posted the PR buut mine issue with package.json is required was resolved differently - via passing:
use_nvm: false
install_command: "echo skip installing dependencies"
still having this issue
Any fix? 🙂
When running that plugin without package.json - the following error is being throwed (I've set default build command to
echo skip
and disabled nvm usage)After adding the package.json this is solved - but shall it really be required if I just want to push already built web ?
I think it would be good idea to use docker image with already preinstalled netlify-cli like https://hub.docker.com/r/williamjackson/netlify-cli (which also might reduce action work time). The issue with package.json is maybe throwed because it tries to install
netlify-cli