From da65732dbb1872f12f1076a2c7986347b6d7ad45 Mon Sep 17 00:00:00 2001 From: Tatsunori Uchino Date: Mon, 11 Jan 2021 15:48:43 +0900 Subject: [PATCH] Cache node_modules --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6cef32a..26effca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,13 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.nodejs }} + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + path: "**/node_modules" + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies run: npm ci - name: Build