From e6600d45e4f2ada514ba5e14013aecca52f6fd85 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 13 Mar 2021 20:34:09 +0000 Subject: [PATCH] cache node_modules maybe? --- .github/workflows/collaboration.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/collaboration.yml b/.github/workflows/collaboration.yml index 19fd1cdc4..1451767d7 100644 --- a/.github/workflows/collaboration.yml +++ b/.github/workflows/collaboration.yml @@ -23,6 +23,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - uses: actions/setup-node@v2 with: node-version: 12