Skip to content

Commit 94eee4f

Browse files
authored
test: set side-effects-cache=false for pnpm (#1364)
1 parent d8ecebb commit 94eee4f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ jobs:
11281128

11291129
The package manager `pnpm` is not pre-installed in [GitHub Actions runner images](https://github.com/actions/runner-images) (unlike `npm` and `yarn`) and so it must be installed in a separate workflow step (see below). 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.
11301130

1131-
The example below follows [pnpm recommendations](https://pnpm.io/continuous-integration#github-actions) for installing pnpm and caching the [pnpm store](https://pnpm.io/cli/store).
1131+
The example below follows [pnpm recommendations](https://pnpm.io/continuous-integration#github-actions) for installing pnpm and caching the [pnpm store](https://pnpm.io/cli/store). Add [side-effects-cache=false](https://pnpm.io/npmrc#side-effects-cache) to an `.npmrc` file in your project to allow pnpm to install the Cypress binary even if the Cypress npm module has been cached by pnpm.
11321132

11331133
```yaml
11341134
name: example-basic-pnpm

examples/basic-pnpm/.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
https://pnpm.io/npmrc#side-effects-cache
2+
side-effects-cache=false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
https://pnpm.io/npmrc#side-effects-cache
2+
side-effects-cache=false

0 commit comments

Comments
 (0)