diff --git a/README.md b/README.md index 856315cdb..3a4add3d7 100644 --- a/README.md +++ b/README.md @@ -1147,7 +1147,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). 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. +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). Follow the [Cypress pnpm configuration instructions](https://on.cypress.io/install#pnpm-Configuration) and apply them to your project, to enable pnpm to install the Cypress binary. ```yaml name: example-basic-pnpm diff --git a/examples/basic-pnpm/.npmrc b/examples/basic-pnpm/.npmrc deleted file mode 100644 index 56fe527a5..000000000 --- a/examples/basic-pnpm/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -# https://pnpm.io/settings#sideeffectscache -side-effects-cache=false diff --git a/examples/basic-pnpm/pnpm-workspace.yaml b/examples/basic-pnpm/pnpm-workspace.yaml index 1f901a6e6..b1016a171 100644 --- a/examples/basic-pnpm/pnpm-workspace.yaml +++ b/examples/basic-pnpm/pnpm-workspace.yaml @@ -1,2 +1,4 @@ onlyBuiltDependencies: - cypress + +sideEffectsCache: false diff --git a/examples/start-and-pnpm-workspaces/.npmrc b/examples/start-and-pnpm-workspaces/.npmrc deleted file mode 100644 index 56fe527a5..000000000 --- a/examples/start-and-pnpm-workspaces/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -# https://pnpm.io/settings#sideeffectscache -side-effects-cache=false diff --git a/examples/start-and-pnpm-workspaces/pnpm-workspace.yaml b/examples/start-and-pnpm-workspaces/pnpm-workspace.yaml index e2d1688e4..e50fb92c8 100644 --- a/examples/start-and-pnpm-workspaces/pnpm-workspace.yaml +++ b/examples/start-and-pnpm-workspaces/pnpm-workspace.yaml @@ -1,4 +1,7 @@ packages: - packages/* + onlyBuiltDependencies: - cypress + +sideEffectsCache: false