From 8fbfbfe87811e4d861c560786cf5a5564df41d07 Mon Sep 17 00:00:00 2001 From: Somnath Chattaraj Date: Mon, 29 Jul 2024 19:58:00 +0530 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4ca56f9..a57b6de 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,6 +22,15 @@ jobs: node-version: '20' cache: 'npm' + - name: Cache Node modules + uses: actions/cache@v3 + with: + path: | + ./backend/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('backend/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies run: npm install working-directory: ./backend