From 21887a6753839e7c35b7246c3ea2d58507b4f027 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:52:39 +0200 Subject: [PATCH] test: use installed cypress version in yarn pnp example (#903) --- .github/workflows/example-yarn-modern-pnp.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/example-yarn-modern-pnp.yml b/.github/workflows/example-yarn-modern-pnp.yml index 5efa4673d..e4ee762a1 100644 --- a/.github/workflows/example-yarn-modern-pnp.yml +++ b/.github/workflows/example-yarn-modern-pnp.yml @@ -22,4 +22,4 @@ jobs: working-directory: examples/yarn-modern-pnp # https://yarnpkg.com/cli/install install-command: yarn install - command: yarn dlx cypress run + command: yarn cypress run diff --git a/README.md b/README.md index e52fd33a4..0f5a9c2b7 100644 --- a/README.md +++ b/README.md @@ -1080,7 +1080,7 @@ jobs: ### Yarn Plug'n'Play -When using [Yarn Modern](https://yarnpkg.com/) (Yarn 2 and later) with [Plug'n'Play](https://yarnpkg.com/features/pnp) enabled, you will need to use the `command` parameter to run [yarn dlx](https://yarnpkg.com/cli/dlx) instead of [npx](https://docs.npmjs.com/cli/v9/commands/npx). +When using [Yarn Modern](https://yarnpkg.com/) (Yarn 2 and later) with [Plug'n'Play](https://yarnpkg.com/features/pnp) enabled, you will need to use the `command` parameter to run `yarn` instead of [npx](https://docs.npmjs.com/cli/v9/commands/npx). ```yaml name: example-yarn-modern-pnp @@ -1096,7 +1096,7 @@ jobs: with: working-directory: examples/yarn-modern-pnp install-command: yarn install - command: yarn dlx cypress run + command: yarn cypress run ``` [![Yarn Plug'n'Play example](https://github.com/cypress-io/github-action/actions/workflows/example-yarn-modern-pnp.yml/badge.svg?branch=master)](https://github.com/cypress-io/github-action/actions/workflows/example-yarn-modern-pnp.yml)