Start hashing the package.json too

This commit is contained in:
Eric Schultz 2020-08-18 13:06:47 -05:00 committed by Eric Schultz
parent f6fd10b87e
commit 247b829054

View file

@ -42,7 +42,7 @@ jobs:
name: Use Node package cache
with:
path: node_modules
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: install node packages
@ -98,7 +98,7 @@ jobs:
name: Use Node package cache
with:
path: node_modules
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- uses: actions/cache@v1
@ -130,7 +130,7 @@ jobs:
name: Use Node package cache
with:
path: node_modules
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run jest
@ -150,7 +150,7 @@ jobs:
name: Use Node package cache
with:
path: node_modules
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run yarn eslint
@ -194,7 +194,7 @@ jobs:
name: Use Node package cache
with:
path: node_modules
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run setup
@ -239,7 +239,7 @@ jobs:
name: Use Node package cache
with:
path: node_modules
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run setup