Borales / actions-yarn

GitHub Action for interacting with yarn
MIT License
298 stars 57 forks source link

Cache installed packages if yarn.lock hasn't changed #276

Closed robd003 closed 7 months ago

robd003 commented 7 months ago

It would be great to have cache support so that if the hash for yarn.lock is the same instead of doing a full install during each run it would just load from cache

Borales commented 7 months ago

@robd003 you could still do that with https://github.com/actions/cache and conditionally calling yarn install if you had a "cache hit" (meaning "the cache was found for your yarn.lock checksum") - you could find more info in that repo.