Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-hash committed Jan 5, 2025
1 parent f9e6ef6 commit 71446d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: update yarn
run: |
npm install yarn@latest -g
- name: Detect package manager
id: detect-package-manager
run: |
Expand All @@ -57,7 +54,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
Expand All @@ -79,23 +76,13 @@ jobs:
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Debug build output
run: |
more .env
- name: Set Secrets and Change Dir
env:
NEXT_PUBLIC_NODE_URL: ${{ vars.NEXT_PUBLIC_NODE_URL }}
NEXT_PUBLIC_NETWORK: ${{ vars.NEXT_PUBLIC_NETWORK }}
run: echo "Secrets set"
run: | # Secrets needed on the server
echo "NEXT_PUBLIC_NODE_URL=${{vars.NEXT_PUBLIC_NODE_URL}}" >> .env
echo "NEXT_PUBLIC_NETWORK=${{vars.NEXT_PUBLIC_NETWORK}}" >> .env
- name: Build with Next.js
run: |
export NODE_OPTIONS="--trace-deprecation"
${{ steps.detect-package-manager.outputs.runner }} build
- name: Debug build output
run: |
ls -l
ls -l .next || echo "No .next directory found"
ls -l out || echo "No out directory found"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions appv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "NODE_OPTIONS='--trace-deprecation' CI=1 next build -d",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
Expand Down Expand Up @@ -49,6 +49,7 @@
"ts-jest": "^29.1.4"
},
"devDependencies": {
"@types/react": "19.0.1"
"@types/react": "19.0.1",
"typescript": "5.7.2"
}
}
5 changes: 5 additions & 0 deletions appv2/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6078,6 +6078,11 @@ typeforce@^1.11.5:
resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc"
integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==

[email protected]:
version "5.7.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==

ufo@^1.5.4:
version "1.5.4"
resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.5.4.tgz#16d6949674ca0c9e0fbbae1fa20a71d7b1ded754"
Expand Down

0 comments on commit 71446d3

Please sign in to comment.