diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 18b6831..18c049d 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -36,13 +36,13 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install with: - version: 7 + version: 8 run_install: false - name: Get pnpm store directory @@ -50,6 +50,7 @@ jobs: shell: bash run: | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - uses: actions/cache@v3 name: Setup pnpm cache with: @@ -57,6 +58,7 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Install dependencies run: pnpm install @@ -64,10 +66,13 @@ jobs: uses: actions/configure-pages@v3 with: static_site_generator: next + - name: Build with Next.js run: pnpm next build + - name: Static HTML export with Next.js run: pnpm next export + - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: