You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -1002,6 +1002,7 @@ jobs:
1002
1002
### pnpm
1003
1003
1004
1004
The package manager `pnpm` is not pre-installed in [GitHub Actions runner images](https://github.com/actions/runner-images) (unlike `npm` and `yarn`): to install `pnpm` include [pnpm/action-setup](https://github.com/pnpm/action-setup) in your workflow. If the action finds a `pnpm-lock.yaml` file, it uses the [pnpm](https://pnpm.io/cli/install) command `pnpm install --frozen-lockfile` by default to install dependencies.
1005
+
At this time the action does not automatically cache dependencies installed by pnpm. The example below includes steps to locate the pnpm store directory and to cache its contents for later use.
1005
1006
1006
1007
```yaml
1007
1008
name: example-basic-pnpm
@@ -1016,6 +1017,17 @@ jobs:
1016
1017
uses: pnpm/action-setup@v2
1017
1018
with:
1018
1019
version: 8
1020
+
- name: Get pnpm store directory
1021
+
shell: bash
1022
+
run: |
1023
+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
0 commit comments