Commit 7920f570 authored by jongwooo's avatar jongwooo
Browse files

Use cache in check-dist.yml

Signed-off-by: default avatarjongwooo <[email protected]>
parent f8116c89
Loading
Loading
Loading
Loading
+11
Changes for .github/workflows/check-dist.yml: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -27,6 +27,17 @@ 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-
      - name: Install dependencies
        run: npm ci
      - name: Rebuild the dist/ directory