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