ci: fix nodejs caching

This commit is contained in:
divlo 2020-10-29 17:03:19 +01:00
parent 75221c24f6
commit f8f655a6af

View File

@ -16,6 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: 'Cache dependencies'
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.2
with:
@ -26,10 +32,3 @@ jobs:
- name: 'Run the tests'
run: npm test
- name: 'Cache dependencies'
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}