From d2e0231341180f80b90deae5dcc1e41ceebb35c8 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 22 Nov 2022 21:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20workflow=20node=5Fmodules?= =?UTF-8?q?=20=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_docker_image.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index bb3cd242..e50dad88 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -51,21 +51,13 @@ jobs: with: version: latest - - name: Cache node_modules - id: cache-node-modules - uses: actions/cache@v3 + - uses: actions/setup-node@v3 with: - path: node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('pnpm-lock.yml') }} - restore-keys: | - ${{ runner.os }}-node-modules-${{ hashFiles('pnpm-lock.yml') }} - - - name: Install dependencies - if: steps.cache-node-modules.outputs.cache-hit != 'true' - run: pnpm install + cache: 'pnpm' - name: build front and back run: | + pnpm install --frozen-lockfile pnpm build:front pnpm build:back