Skip to content

Commit

Permalink
ci: add .next/cache folder in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
turtton committed Jun 11, 2023
1 parent 07d0fb0 commit 98ae2d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ jobs:
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
name: Setup next cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: |
${{ github.workspace }}/.next/cache
${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-next-store-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{ runner.os }}-next-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install
Expand Down

0 comments on commit 98ae2d7

Please sign in to comment.