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 name: Use Node package cache
with: with:
path: node_modules 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: | restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}- bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: install node packages - name: install node packages
@ -98,7 +98,7 @@ jobs:
name: Use Node package cache name: Use Node package cache
with: with:
path: node_modules 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: | restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}- bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- uses: actions/cache@v1 - uses: actions/cache@v1
@ -130,7 +130,7 @@ jobs:
name: Use Node package cache name: Use Node package cache
with: with:
path: node_modules 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: | restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}- bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run jest - name: run jest
@ -150,7 +150,7 @@ jobs:
name: Use Node package cache name: Use Node package cache
with: with:
path: node_modules 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: | restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}- bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run yarn eslint - name: run yarn eslint
@ -194,7 +194,7 @@ jobs:
name: Use Node package cache name: Use Node package cache
with: with:
path: node_modules 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: | restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}- bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run setup - name: run setup
@ -239,7 +239,7 @@ jobs:
name: Use Node package cache name: Use Node package cache
with: with:
path: node_modules 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: | restore-keys: |
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}- bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
- name: run setup - name: run setup