mirror of
https://github.com/supabase/setup-cli.git
synced 2026-02-09 03:45:28 +00:00
fix: bump default cli version to 2.33.0
This commit is contained in:
13
README.md
13
README.md
@@ -24,7 +24,7 @@ A specific version of the `supabase` CLI can be installed:
|
|||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v1
|
- uses: supabase/setup-cli@v1
|
||||||
with:
|
with:
|
||||||
version: 2.20.3
|
version: 2.33.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Run `supabase db start` to execute all migrations on a fresh database:
|
Run `supabase db start` to execute all migrations on a fresh database:
|
||||||
@@ -34,7 +34,6 @@ steps:
|
|||||||
- uses: supabase/setup-cli@v1
|
- uses: supabase/setup-cli@v1
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- run: supabase init
|
|
||||||
- run: supabase db start
|
- run: supabase db start
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -46,7 +45,7 @@ The actions supports the following inputs:
|
|||||||
|
|
||||||
| Name | Type | Description | Default | Required |
|
| 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
|
## Advanced Usage
|
||||||
|
|
||||||
@@ -55,11 +54,10 @@ Check generated TypeScript types are up-to-date with Postgres schema:
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v1
|
- uses: supabase/setup-cli@v1
|
||||||
- run: supabase init
|
|
||||||
- run: supabase db start
|
- run: supabase db start
|
||||||
- name: Verify generated types match Postgres schema
|
- name: Verify generated types match Postgres schema
|
||||||
run: |
|
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
|
if ! git diff --ignore-space-at-eol --exit-code --quiet schema.gen.ts; then
|
||||||
echo "Detected uncommitted changes after build. See status below:"
|
echo "Detected uncommitted changes after build. See status below:"
|
||||||
git diff
|
git diff
|
||||||
@@ -72,6 +70,7 @@ Release job to push schema changes to a Supabase project:
|
|||||||
```yaml
|
```yaml
|
||||||
env:
|
env:
|
||||||
SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
# Optionally set the postgres password for linking project database
|
||||||
SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
|
SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
|
||||||
# Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id>
|
# Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id>
|
||||||
PROJECT_ID: <project-id>
|
PROJECT_ID: <project-id>
|
||||||
@@ -84,12 +83,12 @@ env:
|
|||||||
|
|
||||||
## Develop
|
## Develop
|
||||||
|
|
||||||
> Requires `node >= 16`
|
> Requires `node >= 20`
|
||||||
|
|
||||||
Install the dependencies
|
Install the dependencies
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install
|
$ npm ci
|
||||||
```
|
```
|
||||||
|
|
||||||
Build the typescript and package it for distribution
|
Build the typescript and package it for distribution
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ inputs:
|
|||||||
version:
|
version:
|
||||||
description: Version of Supabase CLI to install
|
description: Version of Supabase CLI to install
|
||||||
required: false
|
required: false
|
||||||
default: 2.20.3
|
default: 2.33.0
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
description: Version of installed Supabase CLI
|
description: Version of installed Supabase CLI
|
||||||
|
|||||||
Reference in New Issue
Block a user