From 598966774ff7aa20a4fcea6a1bb03b18dded9732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Kazami=20=5B=E4=B9=94=E6=B2=BB=C2=B7=E9=A2=A8?= =?UTF-8?q?=E8=A6=8B=5D?= Date: Sat, 18 Feb 2023 10:15:04 +0000 Subject: [PATCH] Update dev-azure-staticwebapp.yml --- .github/workflows/dev-azure-staticwebapp.yml | 54 +++++++++++--------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/.github/workflows/dev-azure-staticwebapp.yml b/.github/workflows/dev-azure-staticwebapp.yml index 491ae46..a3a409e 100644 --- a/.github/workflows/dev-azure-staticwebapp.yml +++ b/.github/workflows/dev-azure-staticwebapp.yml @@ -57,35 +57,41 @@ jobs: with: node-version: ${{ matrix.node-version }} - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 7 - run_install: false + - name: Install dependencies + run: npm install - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - name: Use npm to build + run: npm run build - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- +# - uses: pnpm/action-setup@v2 +# name: Install pnpm +# id: pnpm-install +# with: +# version: 7 +# run_install: false - - name: Install dependencies - run: pnpm install +# - name: Get pnpm store directory +# id: pnpm-cache +# shell: bash +# run: | +# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + +# - uses: actions/cache@v3 +# name: Setup pnpm cache +# with: +# path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} +# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} +# restore-keys: | +# ${{ runner.os }}-pnpm-store- + +# - name: Install dependencies +# run: pnpm install - - name: Use pnpm to build - run: pnpm run build +# - name: Use pnpm to build +# run: pnpm run build - # - name: post-build test - # run: pnpm test +# - name: post-build test +# run: pnpm test - name: Deploy build artifacts to Azure id: builddeploy