Resolving Yarn2 + Cypress GitHub Action: Cannot find module ‘cypress’
An open issue exists for running the Cypress.io end-to-end test GitHub Action in a Yarn2 plug-and-play repository: the action fails with the following error:
Error: Cannot find module 'cypress'
I dug into resolving this myself, and I found the root cause to be this line of the GitHub Action:
// If `command:` is provided, run it.
const customCommand = core.getInput('command')…