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:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-node@v2.4.1
|
- uses: actions/setup-node@v2.4.1
|
||||||
|
|
||||||
- name: Cache node modules
|
|
||||||
uses: actions/cache@v2.1.6
|
|
||||||
env:
|
|
||||||
cache-name: cache-node-modules
|
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
cache: 'npm'
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
|
|
||||||
- name: Cache validator
|
- name: Cache validator
|
||||||
id: validator-cache
|
id: validator-cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user