Skip to content

Commit

Permalink
test: set side-effects-cache=false for pnpm (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Feb 18, 2025
1 parent d8ecebb commit 94eee4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ jobs:

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.

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).
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.

```yaml
name: example-basic-pnpm
Expand Down
2 changes: 2 additions & 0 deletions examples/basic-pnpm/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://pnpm.io/npmrc#side-effects-cache
side-effects-cache=false
2 changes: 2 additions & 0 deletions examples/start-and-pnpm-workspaces/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://pnpm.io/npmrc#side-effects-cache
side-effects-cache=false

0 comments on commit 94eee4f

Please sign in to comment.