Skip to content

Commit

Permalink
chore: fix supabase ci (#88)
Browse files Browse the repository at this point in the history
* chore: test supabase ci

* Rerun deployment

* Rerun supabase CI

* Rerun supabase CI

* Test other variables

* Test other variables

* chore: test supabase ci

* Final test, hopefully

* Final test, hopefully 2

* Finalize workflow file

* Remove echo from a workflow
  • Loading branch information
domhhv authored Sep 19, 2024
1 parent 7aa9e40 commit 8397aef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}

steps:
- uses: actions/checkout@v3
Expand All @@ -22,5 +22,5 @@ jobs:
with:
version: latest

- run: supabase link --project-ref $SUPABASE_PROJECT_ID --debug
- run: supabase link --project-ref $SUPABASE_PROJECT_ID
- run: supabase db push
4 changes: 2 additions & 2 deletions src/helpers/supabaseClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createClient } from '@supabase/supabase-js';

export const supabaseClient = createClient(
process.env.SUPABASE_URL || '',
process.env.SUPABASE_ANON_KEY || ''
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!
);

0 comments on commit 8397aef

Please sign in to comment.