mirror of
https://github.com/actions/cache.git
synced 2026-03-23 21:30:19 +00:00
Merge ddfa08450f into 704facf57e
This commit is contained in:
commit
4802ffaac3
18
examples.md
18
examples.md
@ -21,6 +21,7 @@
|
||||
- [Java - Maven](#java---maven)
|
||||
- [Node - npm](#node---npm)
|
||||
- [Node - Lerna](#node---lerna)
|
||||
- [Node - pnpm](#node---pnpm)
|
||||
- [Node - Yarn](#node---yarn)
|
||||
- [Node - Yarn 2](#node---yarn-2)
|
||||
- [OCaml/Reason - esy](#ocamlreason---esy)
|
||||
@ -370,6 +371,23 @@ The yarn cache directory will depend on your operating system and version of `ya
|
||||
${{ runner.os }}-yarn-
|
||||
```
|
||||
|
||||
|
||||
## Node - Pnpm
|
||||
|
||||
```yaml
|
||||
- name: Cache .pnpm-store
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.pnpm-store
|
||||
D:\.pnpm-store
|
||||
**/node_modules
|
||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}
|
||||
```
|
||||
|
||||
|
||||
## Node - Yarn 2
|
||||
|
||||
The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/configuration/yarnrc#cacheFolder for more info.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user