👷 Adds an action to cache artifacts, to speed up build

This commit is contained in:
Alicia Sykes 2021-07-21 17:57:15 +01:00 committed by GitHub
parent a87dab117a
commit c849a53a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
.github/workflows/cache-artifacts.yml vendored Normal file
View File

@ -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-