mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
update advanced-usage.md
This commit is contained in:
parent
ecb6f5316c
commit
ba32845a5f
1 changed files with 2 additions and 9 deletions
|
@ -122,21 +122,14 @@ steps:
|
||||||
|
|
||||||
**Caching pnpm (v6.10+) dependencies:**
|
**Caching pnpm (v6.10+) dependencies:**
|
||||||
```yaml
|
```yaml
|
||||||
# This workflow uses actions that are not certified by GitHub.
|
# NOTE: pnpm caching support requires pnpm version >= 14.17
|
||||||
# They are provided by a third-party and are governed by
|
|
||||||
# separate terms of service, privacy policy, and support
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
# NOTE: pnpm caching support requires pnpm version >= 6.10.0
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: pnpm/action-setup@v2
|
|
||||||
with:
|
|
||||||
version: 6.32.9
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
|
corepack: true
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile
|
||||||
- run: pnpm test
|
- run: pnpm test
|
||||||
|
|
Loading…
Add table
Reference in a new issue