From 10aeee78aa47abfd829e24822372a7f60857eed8 Mon Sep 17 00:00:00 2001 From: Lauri Peltonen <20242241+microbecode@users.noreply.github.com> Date: Wed, 8 Nov 2023 12:56:43 +0000 Subject: [PATCH] hhhh --- .github/workflows/nextjs.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 50d9312..0ec9fe9 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -24,10 +24,6 @@ concurrency: group: "pages" cancel-in-progress: false -defaults: - run: - working-directory: ./frontend - jobs: # Build job build: @@ -40,14 +36,14 @@ jobs: id: detect-package-manager run: | if [ -f "${{ github.workspace }}/frontend/yarn.lock" ]; then - echo "manager=yarn" >> $GITHUB_OUTPUT - echo "command=install" >> $GITHUB_OUTPUT - echo "runner=yarn" >> $GITHUB_OUTPUT + echo "manager=./frontend/yarn" >> $GITHUB_OUTPUT + echo "command=./frontend/install" >> $GITHUB_OUTPUT + echo "runner=./frontend/yarn" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/frontend/package.json" ]; then - echo "manager=npm" >> $GITHUB_OUTPUT - echo "command=ci" >> $GITHUB_OUTPUT - echo "runner=npx --no-install" >> $GITHUB_OUTPUT + echo "manager=./frontend/npm" >> $GITHUB_OUTPUT + echo "command=./frontend/ci" >> $GITHUB_OUTPUT + echo "runner=./frontend/npx --no-install" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine package manager"