diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d39a811..e0c8c2e 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -31,6 +31,14 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} + - name: Cache .npm directory + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install npm packages run: npm ci