From 0f668097c3438552ea0fd9e5d10b74189688a161 Mon Sep 17 00:00:00 2001 From: Aris Ripandi Date: Thu, 20 Feb 2025 03:20:45 +0700 Subject: [PATCH] fix: GitHub Actions --- .github/workflows/publish.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 315896c..96d1ffa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,22 +43,22 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - static_site_generator: next + # with: + # # Automatically inject basePath in your Next.js configuration file and disable + # # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). + # static_site_generator: next - # - name: Restore cache - # uses: actions/cache@v4 - # with: - # path: | - # ${{ env.STORE_PATH }} - # ${{ github.workspace }}/.next/cache - # # Generate a new cache whenever packages or source files change. - # 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('**/pnpm-lock.yaml') }}- + - name: Restore cache + uses: actions/cache@v4 + with: + path: | + ${{ env.STORE_PATH }} + ${{ github.workspace }}/.next/cache + # Generate a new cache whenever packages or source files change. + 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('**/pnpm-lock.yaml') }}- - name: Install dependencies run: pnpm install --frozen-lockfile