use setup-node to cache node modules for workflow
This commit is contained in:
parent
7e63dc29d3
commit
f4c40e0a65
8
.github/workflows/static.yml
vendored
8
.github/workflows/static.yml
vendored
@ -14,14 +14,8 @@ jobs:
|
||||
with:
|
||||
submodules: true
|
||||
- uses: actions/setup-node@v2.4.1
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2.1.6
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Cache validator
|
||||
id: validator-cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user