From 3658016c4786f1d4ed7d58848b40383dd101f255 Mon Sep 17 00:00:00 2001 From: Kuinox Date: Wed, 15 Nov 2023 15:49:45 +0100 Subject: [PATCH] CI Compile Check + Compile Fix (#23) * Removed log in render. * Added CI build check. --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ src/app/blog/page.tsx | 1 - 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8e7e88e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +on: + workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: write + pages: write + id-token: write + deployments: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '19' + + - name: Install dependencies + run: npm ci + + - name: Build the app + run: npm run build \ No newline at end of file diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 4cc4386..782b594 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -23,7 +23,6 @@ export default async function Page() { })}   Tags - {console.log(article) && ""} {article.tags}   By {article.authors?.join(", ")}