From 69f07dd9d280e753a91c013799901ad3bbf27717 Mon Sep 17 00:00:00 2001 From: "Ourai L." Date: Thu, 12 Sep 2024 02:19:31 +0800 Subject: [PATCH] Update nextjs.yml --- .github/workflows/nextjs.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 40cd164e9..1299b8d75 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -74,15 +74,19 @@ jobs: # If source files changed but packages didn't, rebuild from a prior cache. restore-keys: | ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - - name: Change working directory - run: cd .knosys/sites/default - - name: Install dependencies - run: | - ls -al . - ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + # - name: Change working directory + # run: cd .knosys/sites/default + # - name: Install dependencies + # run: | + # ls -al . + # ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Build with Next.js run: | + # Change working directory + cd .knosys/sites/default ls -al . + # Install dependencies + ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} ${{ steps.detect-package-manager.outputs.runner }} build - name: Upload artifact uses: actions/upload-pages-artifact@v3