mirror of
https://github.com/actions/cache.git
synced 2026-06-27 07:28:10 +00:00
Compare commits
11 Commits
18d33c2108
...
8ef3bb3c7b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ef3bb3c7b | ||
|
|
ddfa08450f | ||
|
|
83569a7fa2 | ||
|
|
49a70f556e | ||
|
|
e496d23e27 | ||
|
|
107a4cb2c9 | ||
|
|
f238c072d2 | ||
|
|
c49fc7ae78 | ||
|
|
6d0655e4ae | ||
|
|
380cc927a2 | ||
|
|
6af11308f3 |
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