Skip to content

Proposal: allow disabling package manager caching #1601

@MikeMcC399

Description

@MikeMcC399

What would you like?

  • Provide an action option to disable package manager caching when installing dependencies
  • Add / modify example workflows to demonstrate using package manager caching from GitHub Actions' actions/setup-node

Why is this needed?

cypress-io/github-action caches package manager dependencies for:

and offers no equivalent built-in functionality for:

If a pnpm lockfile pnpm-lock.yaml is detected, the action caches the npm cache, not the pnpm cache, leading to a potentially incorrect Cypress version usage in npx verify steps. For projects with pnpm workspaces, this means that the action cannot be used to install dependencies (see description of failure condition in #1594 (comment)). Instead dependencies must be installed using pnpm install commands directly.

GitHub Actions offers a full suite of setup-* actions to cache dependencies of commonly-used package managers.

For Cypress, the relevant caching action is actions/setup-node which offers caching for npm, Yarn (v1 and Modern) and pnpm.

Duplicating the capability from actions/setup-node into cypress-io/github-action for pnpm and Yarn would involve a significant re-write and on-going action maintenance effort, so this would not be a recommended resolution strategy.

Other

Relates to:

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions