chore: Use setup-node action to cache dependencies

pull/1004/head
jongwooo 2 years ago
parent 0d47d164e9
commit e050ebdd63

@ -27,17 +27,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Determine npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Restore npm cache
uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: check-dist-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
check-dist-${{ runner.os }}-node-
cache: npm
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory

Loading…
Cancel
Save