Use npm dependencies cache from setup-node@v2
This commit is contained in:
parent
f2ed3f2d86
commit
a5101fa9b4
1 changed files with 3 additions and 9 deletions
12
.github/workflows/pipeline.yml
vendored
12
.github/workflows/pipeline.yml
vendored
|
|
@ -68,17 +68,11 @@ jobs:
|
||||||
NODE_OPTIONS: '--max_old_space_size=4096'
|
NODE_OPTIONS: '--max_old_space_size=4096'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16.8 # TODO: Make it 16 after this is fixed: https://github.com/nodejs/node/issues/40030
|
node-version: 16.8 # TODO: Make it 16 after this is fixed: https://github.com/nodejs/node/issues/40030
|
||||||
|
cache: 'npm'
|
||||||
- uses: actions/cache@v2
|
cache-dependency-path: '**/package-lock.json'
|
||||||
id: cache-npm
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('ui/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-
|
|
||||||
|
|
||||||
- name: npm install dependencies
|
- name: npm install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue