@@ -24,7 +24,7 @@ A specific version of the `supabase` CLI can be installed:
24
24
steps:
25
25
- uses: supabase/setup-cli@v1
26
26
with:
27
- version: 2.20.3
27
+ version: 2.33.0
28
28
` ` `
29
29
30
30
Run `supabase db start` to execute all migrations on a fresh database :
34
34
- uses: supabase/setup-cli@v1
35
35
with:
36
36
version: latest
37
- - run: supabase init
38
37
- run: supabase db start
39
38
` ` `
40
39
@@ -46,7 +45,7 @@ The actions supports the following inputs:
46
45
47
46
| Name | Type | Description | Default | Required |
48
47
| --------- | ------ | ---------------------------------- | -------- | -------- |
49
- | `version` | String | Supabase CLI version (or `latest`) | `2.20.3 ` | false |
48
+ | `version` | String | Supabase CLI version (or `latest`) | `2.33.0 ` | false |
50
49
51
50
# # Advanced Usage
52
51
@@ -55,11 +54,10 @@ Check generated TypeScript types are up-to-date with Postgres schema:
55
54
` ` ` yaml
56
55
steps:
57
56
- uses: supabase/setup-cli@v1
58
- - run: supabase init
59
57
- run: supabase db start
60
58
- name: Verify generated types match Postgres schema
61
59
run: |
62
- supabase gen types typescript --local > schema.gen.ts
60
+ supabase gen types --local > schema.gen.ts
63
61
if ! git diff --ignore-space-at-eol --exit-code --quiet schema.gen.ts; then
64
62
echo "Detected uncommitted changes after build. See status below:"
65
63
git diff
@@ -72,7 +70,6 @@ Release job to push schema changes to a Supabase project:
72
70
` ` ` yaml
73
71
env:
74
72
SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
75
- SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
76
73
# Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id>
77
74
PROJECT_ID: <project-id>
78
75
84
81
85
82
# # Develop
86
83
87
- > Requires `node >= 16 `
84
+ > Requires `node >= 20 `
88
85
89
86
Install the dependencies
90
87
91
88
` ` ` bash
92
- $ npm install
89
+ $ npm ci
93
90
` ` `
94
91
95
92
Build the typescript and package it for distribution
0 commit comments