Skip to content

Commit ab44abf

Browse files
committed
minor #2649 Document and update CI for Corepack manual installation (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- Document and update CI for Corepack manual installation | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Yesterday, the Node.js team decided to stop distributing corepack with Node.js, see nodejs/TSC#1697 (comment) There is no other alternative than Corepack for installing Yarn Berry, see https://yarnpkg.com/getting-started/install So, I'm adding the `npm i -g corepack` command where we use/mention `corepack enable`. Commits ------- 2657ecd Document and update CI for Corepack manual installation
2 parents ca5793e + 2657ecd commit ab44abf

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/release-on-npm.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Extract version from tag
2222
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2323

24-
- run: corepack enable
24+
- run: npm i -g corepack && corepack enable
2525
- uses: actions/setup-node@v4
2626
with:
2727
cache: 'yarn'

.github/workflows/test.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21-
- run: corepack enable
21+
- run: npm i -g corepack && corepack enable
2222
- uses: actions/setup-node@v4
2323
with:
2424
cache: 'yarn'
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
33-
- run: corepack enable
33+
- run: npm i -g corepack && corepack enable
3434
- uses: actions/setup-node@v4
3535
with:
3636
cache: 'yarn'
@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ubuntu-latest
131131
steps:
132132
- uses: actions/checkout@v4
133-
- run: corepack enable
133+
- run: npm i -g corepack && corepack enable
134134
- uses: actions/setup-node@v4
135135
with:
136136
cache: 'yarn'
@@ -156,7 +156,7 @@ jobs:
156156
steps:
157157
- uses: actions/checkout@v4
158158

159-
- run: corepack enable
159+
- run: npm i -g corepack && corepack enable
160160

161161
- uses: actions/setup-node@v4
162162
with:

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ To set up the development environment, you need the following tools:
4040
- [PHP](https://www.php.net/downloads.php) 8.1 or higher
4141
- [Composer](https://getcomposer.org/download/)
4242
- [Node.js](https://nodejs.org/en/download/package-manager) 22 or higher
43+
- [Corepack](https://github.com/nodejs/corepack)
4344
- [Yarn](https://yarnpkg.com/) 4 or higher
4445

4546
With these tools installed, you can install the project dependencies:

0 commit comments

Comments
 (0)