From 8dc1a52ff9f8dd42d2709079767e4c77c9468213 Mon Sep 17 00:00:00 2001 From: LucasZF Date: Fri, 15 Nov 2024 12:41:14 +0000 Subject: [PATCH] corepack enable (#778) --- .github/workflows/buildandtest.yml | 5 +++++ .github/workflows/release.yml | 1 + CONTRIBUTING.md | 2 +- package.json | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildandtest.yml b/.github/workflows/buildandtest.yml index 9b93f9c7..dff580c8 100644 --- a/.github/workflows/buildandtest.yml +++ b/.github/workflows/buildandtest.yml @@ -23,6 +23,7 @@ jobs: steps: - name: Check out current commit (${{ github.sha }}) uses: actions/checkout@v4 + - run: corepack enable - name: Set up Node uses: actions/setup-node@v4 # we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed, @@ -51,6 +52,7 @@ jobs: steps: - name: Check out current commit (${{ github.sha }}) uses: actions/checkout@v4 + - run: corepack enable - name: Set up Node uses: actions/setup-node@v4 - name: Check dependency cache @@ -108,6 +110,7 @@ jobs: steps: - name: Check out current commit (${{ github.sha }}) uses: actions/checkout@v4 + - run: corepack enable - name: Set up Node uses: actions/setup-node@v4 - name: Check dependency cache @@ -150,6 +153,7 @@ jobs: steps: - name: Check out current commit (${{ github.sha }}) uses: actions/checkout@v4 + - run: corepack enable - name: Set up Node uses: actions/setup-node@v4 - name: Check dependency cache @@ -172,6 +176,7 @@ jobs: steps: - name: Check out current commit (${{ github.sha }}) uses: actions/checkout@v4 + - run: corepack enable - name: Set up Node uses: actions/setup-node@v4 - name: Check dependency cache diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 708726b8..fbf5e5e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ jobs: with: token: ${{ secrets.GH_RELEASE_PAT }} fetch-depth: 0 + - run: corepack enable - name: Install Dependencies run: yarn install - name: Prepare release diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 527dce9c..24f0dfc1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ You need: -- [nodejs](https://nodejs.org/en/download/) 8 or higher +- [nodejs](https://nodejs.org/en/download/) 18 or higher (with corepack enabled) - [yarn 1](https://classic.yarnpkg.com/lang/en/docs/install) or higher - [yalc](https://github.com/wclr/yalc) (can be installed with `yarn global add yalc`) - http-server diff --git a/package.json b/package.json index 11764d73..32e79759 100644 --- a/package.json +++ b/package.json @@ -132,5 +132,6 @@ "testMatch": [ "**/*.test.(ts|tsx)" ] - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" }