|
|
@ -25,10 +25,15 @@ jobs:
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 16.x
|
|
|
|
node-version: 16.x
|
|
|
|
|
|
|
|
- name: Determine npm cache directory
|
|
|
|
|
|
|
|
id: npm-cache
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
echo "dir=$(npm config get cache)">>$GITHUB_OUTPUT
|
|
|
|
- name: Restore npm cache
|
|
|
|
- name: Restore npm cache
|
|
|
|
uses: actions/cache@v3
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: $(npm config get cache)
|
|
|
|
path: ${{ steps.npm-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-node-
|
|
|
|
${{ runner.os }}-node-
|
|
|
|