action-hosting-deploy icon indicating copy to clipboard operation
action-hosting-deploy copied to clipboard

[ENHANCEMENT] Support npm caching to reduce runtime

Open KKimj opened this issue 3 years ago • 3 comments
trafficstars

Hello!

It takes about 90s to install dependencies something like firebase-tools.

Note, this image. image

Could you support caching some dependencies with actions/cache? ( https://github.com/actions/cache )

Thanks!

KKimj avatar Jul 12 '22 05:07 KKimj

On a related note, firebase-tools npm dependencies list is huge. It has more than a thousand dependencies. Is there a leaner version, for deployments only?

shamrin avatar Aug 09 '22 21:08 shamrin

Related: https://github.com/firebase/firebase-tools/issues/214

shamrin avatar Aug 09 '22 21:08 shamrin

Does this GitHub action do more than what’s in this API guide? Seems straightforward: https://firebase.google.com/docs/hosting/api-deploy

My Action workflow time is dominated by the firebase-tools installation, making it 3 minutes instead of 30-60 seconds.

Is there a faster way?

shamrin avatar Aug 10 '22 17:08 shamrin