diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index f74696c..9071f9f 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -24,8 +24,11 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "16" # Adjust based on your project's compatibility + node-version: "22" + - name: Install pnpm + run: npm install -g pnpm + - name: Install Dependencies run: pnpm install @@ -41,14 +44,15 @@ jobs: restore-keys: | ${{ runner.os }}-node-modules- - - name: Cache Build Output - uses: actions/cache@v4 - with: - path: | - .next/cache - key: ${{ runner.os }}-nextjs-build-output-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-nextjs-build-output- + - name: Cache Build Output + uses: actions/cache@v4 + with: + path: | + .next/cache + key: ${{ runner.os }}-nextjs-build-output-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-nextjs-build-output- + - name: Upload Artifact uses: actions/upload-artifact@v3 @@ -64,7 +68,7 @@ jobs: uses: actions/download-artifact@v3 with: name: nextjs-build - path: ./ + path: . - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3