From c849a53a3d83bd8a11caf76767d985e17b7dce85 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 21 Jul 2021 17:57:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Adds=20an=20action=20to=20cache?= =?UTF-8?q?=20artifacts,=20to=20speed=20up=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cache-artifacts.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/cache-artifacts.yml diff --git a/.github/workflows/cache-artifacts.yml b/.github/workflows/cache-artifacts.yml new file mode 100644 index 00000000..c418519b --- /dev/null +++ b/.github/workflows/cache-artifacts.yml @@ -0,0 +1,13 @@ +# Caches artifacts, including NPM dependencies, to speed up build times +name: Caching Primes +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-