From 5cb55c4d0e1277a4ddeb9c140679e78026501e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 30 Sep 2023 18:30:06 +0200 Subject: [PATCH] CI/CD fix working-directory. --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee26456..17323a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,9 +13,6 @@ env: jobs: build-client: runs-on: ubuntu-latest - defaults: - run: - working-directory: ./client # # do not run on forks # @@ -30,18 +27,19 @@ jobs: with: node-version: '20' cache: 'npm' + cache-dependency-path: ./client/package-lock.json` - name: Install dependencies - run: npm install + run: cd ./client && npm install - name: Build - run: npm run build + run: cd ./client && npm run build - name: Upload artifact uses: actions/upload-artifact@v2 with: name: client - path: dist + path: ./client/dist build-docker: needs: build-client