Skip to content

Commit

Permalink
chore: changed deploy script to use pnpm store dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardonyx001 authored Jan 21, 2024
1 parent e58d2e7 commit 5499258
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
Expand All @@ -79,12 +78,12 @@ jobs:
uses: actions/cache@v3
with:
path: |
.next/cache
${{ env.STORE_PATH }}
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml','**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml','**/package-lock.json', '**/yarn.lock') }}-
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
Expand Down

0 comments on commit 5499258

Please sign in to comment.