Skip to content

Commit b349b48

Browse files
committed
Update generate-types.yml workflow
1 parent 49a6d0b commit b349b48

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/generate-types.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: 'generate-types'
2-
on:
3-
push:
1+
# name: 'generate-types'
2+
# on:
3+
# push:
44

5-
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: supabase/setup-cli@v1
10-
with:
11-
version: latest
12-
- run: supabase init
13-
- run: supabase db start
14-
- name: Verify generated types match Postgres schema
15-
run: |
16-
supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > src/renderer/types/database.types.ts
17-
if ! git diff --ignore-space-at-eol --exit-code --quiet src/renderer/types/database.types.ts; then
18-
echo "Detected uncommitted changes after build. See status below:"
19-
git diff
20-
exit 1
21-
fi
5+
# jobs:
6+
# build:
7+
# runs-on: ubuntu-latest
8+
# steps:
9+
# - uses: supabase/setup-cli@v1
10+
# with:
11+
# version: latest
12+
# - run: supabase init
13+
# - run: supabase db start
14+
# - name: Verify generated types match Postgres schema
15+
# run: |
16+
# supabase gen types typescript --project-id ${{ secrets.PROJECT_REF }} --schema public > database.types.ts
17+
# if ! git diff --ignore-space-at-eol --exit-code --quiet src/renderer/types/database.types.ts; then
18+
# echo "Detected uncommitted changes after build. See status below:"
19+
# git diff
20+
# exit 1
21+
# fi

0 commit comments

Comments
 (0)