From dadb6ee5a7e77f07eca6a90a9c969e6b51ae39b2 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Wed, 23 Jul 2025 00:35:05 +0800 Subject: [PATCH 1/3] fix: bump default cli version to 2.33.0 --- README.md | 13 ++++++------- action.yml | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7bd347c..2715486 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ A specific version of the `supabase` CLI can be installed: steps: - uses: supabase/setup-cli@v1 with: - version: 2.20.3 + version: 2.33.0 ``` Run `supabase db start` to execute all migrations on a fresh database: @@ -34,7 +34,6 @@ steps: - uses: supabase/setup-cli@v1 with: version: latest - - run: supabase init - run: supabase db start ``` @@ -46,7 +45,7 @@ The actions supports the following inputs: | Name | Type | Description | Default | Required | | --------- | ------ | ---------------------------------- | -------- | -------- | -| `version` | String | Supabase CLI version (or `latest`) | `2.20.3` | false | +| `version` | String | Supabase CLI version (or `latest`) | `2.33.0` | false | ## Advanced Usage @@ -55,11 +54,10 @@ Check generated TypeScript types are up-to-date with Postgres schema: ```yaml steps: - uses: supabase/setup-cli@v1 - - run: supabase init - run: supabase db start - name: Verify generated types match Postgres schema run: | - supabase gen types typescript --local > schema.gen.ts + supabase gen types --local > schema.gen.ts if ! git diff --ignore-space-at-eol --exit-code --quiet schema.gen.ts; then echo "Detected uncommitted changes after build. See status below:" git diff @@ -72,6 +70,7 @@ Release job to push schema changes to a Supabase project: ```yaml env: SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + # Optionally set the postgres password for linking project database SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }} # Retrieve from dashboard url: https://app.supabase.com/project/ PROJECT_ID: @@ -84,12 +83,12 @@ env: ## Develop -> Requires `node >= 16` +> Requires `node >= 20` Install the dependencies ```bash -$ npm install +$ npm ci ``` Build the typescript and package it for distribution diff --git a/action.yml b/action.yml index 86915b9..bc95ded 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ inputs: version: description: Version of Supabase CLI to install required: false - default: 2.20.3 + default: 2.33.0 outputs: version: description: Version of installed Supabase CLI From d3753c9dbcb9ac036dd48fae8a920cea10af1a0e Mon Sep 17 00:00:00 2001 From: Han Qiao Date: Wed, 23 Jul 2025 15:45:11 +0800 Subject: [PATCH 2/3] chore: comment on local port --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b742355..70bf28b 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ steps: with: version: latest - run: supabase db start + # Optionally connect to the database using psql + - run: psql 'postgres://postgres:postgres@localhost:54322/postgres' -c '' ``` Since Supabase CLI relies on Docker Engine API, additional setup may be required From a35ea70530f96f4ddcc6556e8bb0ea533d132662 Mon Sep 17 00:00:00 2001 From: Han Qiao Date: Wed, 23 Jul 2025 15:45:46 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70bf28b..5835c57 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ steps: with: version: latest - run: supabase db start - # Optionally connect to the database using psql + # Optionally connect to the local database using psql - run: psql 'postgres://postgres:postgres@localhost:54322/postgres' -c '' ```