Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache node_modules in
Lint (Docs)
(#48073)
The `Lint (Docs)` GitHub Actions workflow spends the most time installing NodeJS dependencies. Cache these dependencies across workflow runs to reduce runtime. Use the `actions/cache` workflow with `node_modules`. With this approach, `Lint (Docs)` runs go from around 10-11m to around 5 minutes. This approach caches `node_modules` instead of the the yarn cache, since yarn needs to build fresh packages even when it copies files from the yarn cache into node_modules.
- Loading branch information