mirror of https://github.com/ColorlibHQ/AdminLTE
Update ci.yml (#2866)
Add caching but skip it on Windows due to https://github.com/actions/cache/issues/336 If the issue is fixed, the `if` condition can be removedpull/2965/head
parent
917e47ea58
commit
d114eabfe6
|
@ -36,6 +36,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
|
- name: Set up npm cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
if: ${{ !startsWith(runner.os, 'windows') }}
|
||||||
|
with:
|
||||||
|
path: ~/.npm
|
||||||
|
key: ${{ runner.os }}-node-v${{ env.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.OS }}-node-v${{ env.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
||||||
|
${{ runner.OS }}-node-v${{ env.node }}-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue