Skip to content

Commit

Permalink
fix: GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
riipandi committed Feb 19, 2025
1 parent 8c2c31f commit 97c875b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ jobs:
uses: actions/cache@v4
with:
path: |
.next/cache
${{ env.STORE_PATH }}
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build Next.js (fumadocs)
run: pnpm next build
Expand Down

0 comments on commit 97c875b

Please sign in to comment.