Why add this step?
- uses: actions/cache@v4
with:
path: ~/.npm
- To reuse downloads between runs
- To store the build output for later
- To share files across two branches
- To keep secrets out of the logs
Caching the dependency directory removes a repeated download from every run.
Play DevOps ▸