Skip to content

Commit

Permalink
test: migrate yarn modern examples to corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Jan 24, 2025
1 parent c19c3fa commit 223fb03
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 1,875 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example-yarn-modern-pnp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- run: corepack enable yarn # experimental - see https://nodejs.org/docs/latest/api/corepack.html
- name: Custom Yarn command
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-yarn-modern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- run: corepack enable yarn # experimental - see https://nodejs.org/docs/latest/api/corepack.html
- name: Custom Yarn command
uses: ./
with:
Expand Down
934 changes: 0 additions & 934 deletions examples/yarn-modern-pnp/.yarn/releases/yarn-4.6.0.cjs

This file was deleted.

1 change: 0 additions & 1 deletion examples/yarn-modern-pnp/.yarnrc.yml

This file was deleted.

10 changes: 9 additions & 1 deletion examples/yarn-modern-pnp/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# example: yarn-modern-pnp

This example demonstrates installing dependencies using [Yarn Modern (version 2 and later)](https://yarnpkg.com/) with [Plug'n'Play](https://yarnpkg.com/features/pnp) turned on.
This example demonstrates installing dependencies using [Yarn Modern v4](https://yarnpkg.com/) with [corepack](https://yarnpkg.com/corepack) enabled and the default configuration of [Plug'n'Play](https://yarnpkg.com/features/pnp) enabled.

Run locally with:

```shell
corepack enable yarn
yarn
yarn test
```
934 changes: 0 additions & 934 deletions examples/yarn-modern/.yarn/releases/yarn-4.6.0.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions examples/yarn-modern/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.6.0.cjs
10 changes: 9 additions & 1 deletion examples/yarn-modern/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# example: yarn-modern

This example demonstrates installing dependencies using [Yarn Modern (version 2 and later)](https://yarnpkg.com/).
This example demonstrates installing dependencies using [Yarn Modern v4](https://yarnpkg.com/) with [corepack](https://yarnpkg.com/corepack) enabled and the configuration option `nodeLinker: node-modules` selected.

Run locally with:

```shell
corepack enable yarn
yarn
yarn test
```

0 comments on commit 223fb03

Please sign in to comment.