Skip to content

Commit 9a3dd6d

Browse files
author
Onur Saf
committed
update env
1 parent 8ccebf7 commit 9a3dd6d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/nextjs.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
77
on:
88
# Runs on pushes targeting the default branch
99
push:
10-
branches: ["main"]
10+
branches: ['main']
1111

1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
@@ -21,13 +21,14 @@ permissions:
2121
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2222
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2323
concurrency:
24-
group: "pages"
24+
group: 'pages'
2525
cancel-in-progress: false
2626

2727
jobs:
2828
# Build job
2929
build:
3030
runs-on: ubuntu-latest
31+
environment: testnet
3132
steps:
3233
- name: Checkout
3334
uses: actions/checkout@v4
@@ -51,7 +52,7 @@ jobs:
5152
- name: Setup Node
5253
uses: actions/setup-node@v4
5354
with:
54-
node-version: "20"
55+
node-version: '20'
5556
cache: ${{ steps.detect-package-manager.outputs.manager }}
5657
- name: Setup Pages
5758
uses: actions/configure-pages@v5
@@ -74,7 +75,7 @@ jobs:
7475
- name: Install dependencies
7576
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7677
- name: Build with Next.js
77-
run: ${{ steps.detect-package-manager.outputs.runner }} next build
78+
run: ${{ steps.detect-package-manager.outputs.manager }} run build
7879
- name: Upload artifact
7980
uses: actions/upload-pages-artifact@v3
8081
with:

0 commit comments

Comments
 (0)