FirebaseExtended / action-hosting-deploy

Automatically deploy shareable previews for your Firebase Hosting sites
https://firebase.google.com/docs/hosting/github-integration
Apache License 2.0
704 stars 202 forks source link

[ENHANCEMENT] Support npm caching to reduce runtime #223

Open KKimj opened 2 years ago

KKimj commented 2 years ago

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!

shamrin commented 2 years ago

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 commented 2 years ago

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

shamrin commented 2 years ago

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?