mirror of
https://github.com/actions/cache.git
synced 2025-03-13 11:47:00 +00:00
Add pnpm example
This commit is contained in:
parent
3a696372f2
commit
6af11308f3
1 changed files with 11 additions and 0 deletions
11
examples.md
11
examples.md
|
@ -240,6 +240,17 @@ The yarn cache directory will depend on your operating system and version of `ya
|
|||
```
|
||||
|
||||
|
||||
## Node - Pnpm
|
||||
|
||||
```yaml
|
||||
- name: Cache .pnpm-store
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}```
|
||||
```
|
||||
|
||||
|
||||
## Node - Yarn 2
|
||||
The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/configuration/yarnrc#cacheFolder for more info.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue