From a2adcdee638f0e6ca8865659eced3f0242800b8c Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 21 May 2024 15:28:44 -0400 Subject: [PATCH] next config and github actions --- next.config.js | 8 ++++++++ .eslintrc.json | 3 +++ .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 next.config.js create mode 100644 .eslintrc.json create mode 100644 .github/workflows/main.yml diff --git a/ next.config.js b/ next.config.js new file mode 100644 index 00000000..257dce65 --- /dev/null +++ b/ next.config.js @@ -0,0 +1,8 @@ +// @ts-check + +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, +}; + +module.exports = nextConfig; diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..bffb357a --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..b212ddf2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + typecheck: + runs-on: ubuntu-latest + name: typecheck + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 17 + cache: "npm" + - run: "npm i" + - run: "npx tsc" + deploy-supabase: + needs: [typecheck] + runs-on: ubuntu-latest + name: Deploy Supabase + env: + SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} + SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} + PRODUCTION_PROJECT_ID: bdefzwcumgzjwllsnaej + + steps: + - uses: actions/checkout@v3 + - uses: supabase/setup-cli@v1 + - run: supabase link --project-ref $PRODUCTION_PROJECT_ID + - run: supabase db push -- 2.51.2