jsmrcaga / action-netlify-deploy

MIT License
102 stars 32 forks source link

Caching dependencies #36

Open ConorSheehan1 opened 1 year ago

ConorSheehan1 commented 1 year ago

It looks like the action downloads node and installs dependencies every time it runs. Is there a way you could cache node and / or dependencies to save time? Maybe something from https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows

jsmrcaga commented 1 year ago

Great issue! Thanks for the feedback!

I believe action runners mount your current environment as a volume for docker images, I'm guessing you could install/cache dependencies in your workflow and that would work. Maybe setting the install command to an empty echo would also be needed.

Could you please give that a try and let me know ?