Skip to content

Commit 288afe6

Browse files
committed
feat: add lockfile
1 parent 8c25f86 commit 288afe6

File tree

2 files changed

+10
-105
lines changed

2 files changed

+10
-105
lines changed

.github/workflow/nextjs.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/workflows/nextjs.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ permissions:
1818
pages: write
1919
id-token: write
2020

21-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
# Allow one concurrent deployment
2322
concurrency:
2423
group: "pages"
25-
cancel-in-progress: false
24+
cancel-in-progress: true
2625

2726
jobs:
2827
# Build job
2928
build:
3029
runs-on: ubuntu-latest
3130
steps:
3231
- name: Checkout
33-
uses: actions/checkout@v4
32+
uses: actions/checkout@v3
3433
- name: Detect package manager
3534
id: detect-package-manager
3635
run: |
@@ -45,24 +44,24 @@ jobs:
4544
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
4645
exit 0
4746
else
48-
echo "Unable to determine package manager"
47+
echo "Unable to determine packager manager"
4948
exit 1
5049
fi
5150
- name: Setup Node
52-
uses: actions/setup-node@v4
51+
uses: actions/setup-node@v3
5352
with:
54-
node-version: "20"
53+
node-version: "16"
5554
cache: ${{ steps.detect-package-manager.outputs.manager }}
5655
- name: Setup Pages
57-
uses: actions/configure-pages@v4
56+
uses: actions/configure-pages@v2
5857
with:
5958
# Automatically inject basePath in your Next.js configuration file and disable
6059
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
6160
#
6261
# You may remove this line if you want to manage the configuration yourself.
6362
static_site_generator: next
6463
- name: Restore cache
65-
uses: actions/cache@v4
64+
uses: actions/cache@v3
6665
with:
6766
path: |
6867
.next/cache
@@ -75,10 +74,8 @@ jobs:
7574
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7675
- name: Build with Next.js
7776
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
8077
- name: Upload artifact
81-
uses: actions/upload-pages-artifact@v3
78+
uses: actions/upload-pages-artifact@v1
8279
with:
8380
path: ./out
8481

@@ -92,4 +89,4 @@ jobs:
9289
steps:
9390
- name: Deploy to GitHub Pages
9491
id: deployment
95-
uses: actions/deploy-pages@v4
92+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)