Cache NPM between test runs

This commit is contained in:
Gabe Kangas
2023-02-15 14:46:45 -08:00
parent 8482d04098
commit d7675a7d29
6 changed files with 73 additions and 1 deletions

View File

@@ -14,6 +14,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules-bundle-web-app
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('web/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install and Build
run: | # Install npm packages and build the Storybook files
cd web