Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancocodet committed Feb 23, 2024
1 parent 4235a7c commit 2e7490a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Pages
name: Deploy site to Pages

on:
push:
Expand All @@ -15,7 +15,6 @@ concurrency:
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
Expand All @@ -41,7 +40,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v4
Expand All @@ -56,11 +55,11 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: npm install
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: npm run build
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Static HTML export with Next.js
run: npm run export
run: ${{ steps.detect-package-manager.outputs.runner }} next export
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion src/components/item_list.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Collection, Item} from "@/pages/types";
import {Collection, Item} from "@/lib/types";

export default function ItemList(collection: Collection) {

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head'
import {useEffect, useState} from "react";
import ItemList from "@/components/item_list";
import {Config} from "@/pages/types";
import {Config} from "@/lib/types";

export default function Home() {

Expand Down

0 comments on commit 2e7490a

Please sign in to comment.