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
9 changes: 8 additions & 1 deletion .github/workflows/example-yarn-modern-pnp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- run: corepack enable yarn # experimental - see https://nodejs.org/docs/latest/api/corepack.html
- name: Enable Corepack # see https://yarnpkg.com/getting-started/install
run: |
npm install -g corepack
corepack enable yarn
- name: Set up Yarn cache
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: yarn
cache-dependency-path: examples/yarn-modern-pnp/yarn.lock
- name: Reinstall Corepack # actions/setup-node may have replaced Corepack with an older version
run: |
npm install -g corepack
corepack enable yarn
- name: Custom Yarn command
uses: ./
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/example-yarn-modern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- run: corepack enable yarn # experimental - see https://nodejs.org/docs/latest/api/corepack.html
- name: Enable Corepack # see https://yarnpkg.com/getting-started/install
run: |
npm install -g corepack
corepack enable yarn
- name: Set up Yarn cache
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: yarn
cache-dependency-path: examples/yarn-modern/yarn.lock
- name: Reinstall Corepack # actions/setup-node may have replaced Corepack with an older version
run: |
npm install -g corepack
corepack enable yarn
- name: Custom Yarn command
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _The previous [examples/v9](https://github.com/cypress-io/github-action/tree/v5/

- [npm](https://www.npmjs.com/), which is installed with [Node.js](https://nodejs.org/).

- [corepack](https://github.com/nodejs/corepack), which is installed with [Node.js](https://nodejs.org/).
- [corepack](https://github.com/nodejs/corepack). This is currently installed with [Node.js](https://nodejs.org/). Due to plans of Node.js to remove it in versions Node.js `25.x` and later, you may need to install it separately with `npm install -g corepack`.

- [pnpm](https://pnpm.io/) installed through:

Expand Down
1 change: 1 addition & 0 deletions examples/yarn-modern-pnp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This example demonstrates installing dependencies using [Yarn Modern v4](https:/
Run locally with:

```shell
npm install -g corepack
corepack enable yarn
yarn
yarn test
Expand Down
1 change: 1 addition & 0 deletions examples/yarn-modern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This example demonstrates installing dependencies using [Yarn Modern v4](https:/
Run locally with:

```shell
npm install -g corepack
corepack enable yarn
yarn
yarn test
Expand Down