Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions examples/basic-pnpm/.npmrc

This file was deleted.

2 changes: 2 additions & 0 deletions examples/basic-pnpm/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
onlyBuiltDependencies:
- cypress

sideEffectsCache: false
2 changes: 0 additions & 2 deletions examples/start-and-pnpm-workspaces/.npmrc

This file was deleted.

3 changes: 3 additions & 0 deletions examples/start-and-pnpm-workspaces/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
packages:
- packages/*

onlyBuiltDependencies:
- cypress

sideEffectsCache: false