docs: correct use cache example config

This commit is contained in:
余腾靖 2024-08-29 01:21:13 +08:00
parent ac5bf11548
commit e3a48a9beb

View File

@ -83,7 +83,7 @@ jobs:
version: 9 version: 9
``` ```
### Install only pnpm with `packageManager` ### Install only pnpm with `packageManager`
Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html). Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
@ -148,7 +148,7 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
cache: 'pnpm' cache: pnpm
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install