From 42306e2a040b7f2b633c0c06c658d9ee22110d42 Mon Sep 17 00:00:00 2001 From: Shigma Date: Mon, 25 Nov 2024 15:58:52 +0800 Subject: [PATCH] chore: set yarn berry --- .github/workflows/build.yaml | 10 ++++++++-- .yarnrc.yml | 1 + package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .yarnrc.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1612b508..c753af6a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,6 +13,8 @@ jobs: uses: actions/checkout@v4 - name: Set up Node uses: actions/setup-node@v4 + - name: Enable Corepack + run: corepack enable - name: Install run: yarn - name: Lint @@ -26,8 +28,10 @@ jobs: uses: actions/checkout@v4 - name: Set up Node uses: actions/setup-node@v4 + - name: Enable Corepack + run: corepack enable - name: Install - run: yarn + run: yarn --no-immutable - name: Build run: yarn build @@ -46,8 +50,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + - name: Enable Corepack + run: corepack enable - name: Install - run: yarn + run: yarn --no-immutable - name: Unit Test run: yarn test:json - name: Report Coverage diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 00000000..3186f3f0 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/package.json b/package.json index cb89f867..eb61a9fd 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "type": "module", "private": true, - "packageManager": "yarn@1.22.19", + "packageManager": "yarn@4.5.2", "workspaces": [ "docs", "external/*",