gha: Add cache step (#87)

This commit is contained in:
Shohei Ueda 2019-11-17 19:59:01 +09:00 committed by GitHub
parent b93236ba6f
commit 10b88ee9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,14 @@ jobs:
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Cache
uses: actions/cache@v1.0.1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run format:check