@@ -24,7 +24,7 @@ A specific version of the `supabase` CLI can be installed:
2424steps:
2525 - uses: supabase/setup-cli@v1
2626 with:
27- version: 2.20.3
27+ version: 2.33.0
2828` ` `
2929
3030Run `supabase db start` to execute all migrations on a fresh database :
3434 - uses: supabase/setup-cli@v1
3535 with:
3636 version: latest
37- - run: supabase init
3837 - run: supabase db start
3938` ` `
4039
@@ -46,7 +45,7 @@ The actions supports the following inputs:
4645
4746| Name | Type | Description | Default | Required |
4847| --------- | ------ | ---------------------------------- | -------- | -------- |
49- | `version` | String | Supabase CLI version (or `latest`) | `2.20.3 ` | false |
48+ | `version` | String | Supabase CLI version (or `latest`) | `2.33.0 ` | false |
5049
5150# # Advanced Usage
5251
@@ -55,11 +54,10 @@ Check generated TypeScript types are up-to-date with Postgres schema:
5554` ` ` yaml
5655steps:
5756 - uses: supabase/setup-cli@v1
58- - run: supabase init
5957 - run: supabase db start
6058 - name: Verify generated types match Postgres schema
6159 run: |
62- supabase gen types typescript --local > schema.gen.ts
60+ supabase gen types --local > schema.gen.ts
6361 if ! git diff --ignore-space-at-eol --exit-code --quiet schema.gen.ts; then
6462 echo "Detected uncommitted changes after build. See status below:"
6563 git diff
@@ -72,6 +70,7 @@ Release job to push schema changes to a Supabase project:
7270` ` ` yaml
7371env:
7472 SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
73+ # Optionally set the postgres password for linking project database
7574 SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
7675 # Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id>
7776 PROJECT_ID: <project-id>
8483
8584# # Develop
8685
87- > Requires `node >= 16 `
86+ > Requires `node >= 20 `
8887
8988Install the dependencies
9089
9190` ` ` bash
92- $ npm install
91+ $ npm ci
9392` ` `
9493
9594Build the typescript and package it for distribution
0 commit comments