From 5f7e042060446ef86134ce76e163f59dd57139b1 Mon Sep 17 00:00:00 2001 From: codenikel <104294082+codenikel@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:06:39 +0530 Subject: [PATCH] Update nextjs.yml --- .github/workflows/nextjs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 5410ca8..7e80f8d 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -68,10 +68,10 @@ jobs: path: | .next/cache # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + key: ${{ runner.os }}-nextjs-${{ hashFiles('lp/**/package-lock.json', 'lp/**/yarn.lock') }}-${{ hashFiles('lp/**.[jt]s', 'lp/**.[jt]sx') }} # If source files changed but packages didn't, rebuild from a prior cache. restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + ${{ runner.os }}-nextjs-${{ hashFiles('lp/**/package-lock.json', 'lp/**/yarn.lock') }}- - name: Install dependencies working-directory: ./lp run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}