Skip to content

Commit

Permalink
Add note about using setup-node before cache (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Gross authored and GitHub committed Jun 15, 2020
1 parent ff937cc commit 984ce63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba

For npm, cache files are stored in `~/.npm` on Posix, or `%AppData%/npm-cache` on Windows. See https://docs.npmjs.com/cli/cache#cache

If using `npm config` to retrieve the cache directory, ensure you run [actions/setup-node](https://github.com/actions/setup-node) first to ensure your `npm` version is correct.

>Note: It is not recommended to cache `node_modules`, as it can break across Node versions and won't work with `npm ci`

### macOS and Ubuntu
Expand Down

0 comments on commit 984ce63

Please sign in to comment.