microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.74k stars 587 forks source link

cache installed deps on CI #4796

Open microsoftly opened 2 weeks ago

microsoftly commented 2 weeks ago

Summary

Details

How it was tested

Impacted documentation

dmichon-msft commented 2 weeks ago

Is this any faster than letting pnpm install directly? I know for the main repo I support I abandoned dependency caching because it's faster to download and install the tarballs than the registry (though that is probably impacted by having a within-datacenter mirror).

microsoftly commented 2 weeks ago

I'm sorry for omitting the description block ... I didn't realize that this would open outside of my repo. It's obviously not ready for review yet.

@dmichon-msft the purpose of this PR is not for efficiency - it's for creating a documented reference for others to see. There was no clear place where I could conclusively find the best way to cache deps for rush, so I figured why not put it in the most authoritative place - the source code.