From 3a27932f29b1de9c6385b4983954f36e361b5c2f Mon Sep 17 00:00:00 2001 From: Megghy Date: Fri, 22 Dec 2023 15:45:07 +0800 Subject: [PATCH] update ci --- .github/workflows/node.js.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b7be204..7051fd2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,6 +25,16 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: yarn install - - run: yarn build + cache: 'yarn' + + - name: Install Yarn + run: npm install -g yarn@canary # Yarn Berry corresponds to Yarn 2+, which includes Yarn 3 and future versions + + - name: Check Yarn Version + run: yarn --version + + - name: Install dependencies + run: yarn install + + - name: Build the project + run: yarn build