From ad507568da60d08e27177af50848da8b06852881 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Tue, 29 Sep 2020 15:33:30 -0500 Subject: [PATCH] Add npm cache --- .github/workflows/pull_request_review.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 2cebb9a4..bcd50ce5 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -27,6 +27,17 @@ jobs: with: node-version: ${{ matrix.node }} + - name: Get npm cache directory + id: npm-cache + run: | + echo "::set-output name=dir::$(npm config get cache)" + - uses: actions/cache@v2 + with: + path: ${{ steps.npm-cache.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install Dependencies run: npm i