Skip to content

Commit 9a1a06d

Browse files
committed
fix
1 parent 2065c36 commit 9a1a06d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/nextjs.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
- name: Detect package manager
3535
id: detect-package-manager
3636
run: |
@@ -49,20 +49,20 @@ jobs:
4949
exit 1
5050
fi
5151
- name: Setup Node
52-
uses: actions/setup-node@v3
52+
uses: actions/setup-node@v4
5353
with:
54-
node-version: "16"
54+
node-version: "20"
5555
cache: ${{ steps.detect-package-manager.outputs.manager }}
5656
- name: Setup Pages
57-
uses: actions/configure-pages@v3
57+
uses: actions/configure-pages@v5
5858
with:
5959
# Automatically inject basePath in your Next.js configuration file and disable
6060
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
6161
#
6262
# You may remove this line if you want to manage the configuration yourself.
6363
static_site_generator: next
6464
- name: Restore cache
65-
uses: actions/cache@v3
65+
uses: actions/cache@v4
6666
with:
6767
path: |
6868
.next/cache
@@ -75,10 +75,8 @@ jobs:
7575
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7676
- name: Build with Next.js
7777
run: ${{ steps.detect-package-manager.outputs.runner }} next build
78-
- name: Static HTML export with Next.js
79-
run: ${{ steps.detect-package-manager.outputs.runner }} next export
8078
- name: Upload artifact
81-
uses: actions/upload-pages-artifact@v2
79+
uses: actions/upload-pages-artifact@v3
8280
with:
8381
path: ./out
8482

@@ -92,4 +90,4 @@ jobs:
9290
steps:
9391
- name: Deploy to GitHub Pages
9492
id: deployment
95-
uses: actions/deploy-pages@v2
93+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)