1
1
mirror of https://github.com/theoludwig/react-component-form.git synced 2024-07-17 07:30:13 +02:00

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