From 28b68d6e7c76299c79f648f9e3b5700c5ca3e87d Mon Sep 17 00:00:00 2001 From: CaoMeiYouRen <996881204@qq.com> Date: Sun, 15 Oct 2023 00:22:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E5=88=B0=20pnpm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af9bda3b..2929d55e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,20 +5,16 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: "latest" - name: Setup Node.js@lts environment - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: "lts/*" - - name: Cache multiple paths - uses: actions/cache@v2 - with: - path: | - ~/.npm - ~/cache - !~/cache/exclude - **/node_modules - key: npm-${{ runner.os }}-${{ hashFiles('package.json') }} - - run: yarn - - run: npm run lint - - run: npm run build + cache: "npm" + - run: pnpm i --fix-lockfile + - run: pnpm run lint + - run: pnpm run build