From 275e3f8d432c548b3cd1b2362bfcb545f3c5a3db Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Thu, 20 Nov 2025 06:17:59 +0300 Subject: [PATCH] fix(ci): correct npm install path for monorepo --- .github/workflows/quality-gate.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml index 21c41397..21fd9875 100644 --- a/.github/workflows/quality-gate.yml +++ b/.github/workflows/quality-gate.yml @@ -27,14 +27,14 @@ jobs: - name: Cache npm dependencies uses: actions/cache@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + path: web/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('web/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install dependencies working-directory: ./web - run: npm ci + run: npm install - name: Run Linter working-directory: ./web @@ -68,15 +68,17 @@ jobs: - name: Cache npm dependencies uses: actions/cache@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + path: web/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('web/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install dependencies - run: npm ci + working-directory: ./web + run: npm install - name: Run npm audit + working-directory: ./web continue-on-error: true run: npm audit --audit-level=high