diff --git a/.github/workflows/next-ci.yml b/.github/workflows/next-ci.yml new file mode 100644 index 0000000..132302a --- /dev/null +++ b/.github/workflows/next-ci.yml @@ -0,0 +1,22 @@ +name: CI for NextJS App + +on: + push: + branches: [develop] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install dependencies + run: npm install + + - name: Lint code + run: npm run lint + + - name: Build for production + run: npm run build \ No newline at end of file diff --git a/package.json b/package.json index 6be82e1..a2c2599 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "prisma generate && next build", "start": "next start", "lint": "next lint", "prepare": "husky", diff --git a/src/layouts/mainLayout/mainLayout.tsx b/src/layouts/mainLayout/MainLayout2.tsx similarity index 100% rename from src/layouts/mainLayout/mainLayout.tsx rename to src/layouts/mainLayout/MainLayout2.tsx diff --git a/src/layouts/mainLayout/index.ts b/src/layouts/mainLayout/index.ts index 1abe551..5ebaa01 100644 --- a/src/layouts/mainLayout/index.ts +++ b/src/layouts/mainLayout/index.ts @@ -1 +1 @@ -export * from './MainLayout'; +export * from './MainLayout2';