Skip to content

Commit 0564d65

Browse files
authored
🔨 Generate frontend SDK on pre-commit, remove custom workflow (#2111)
1 parent da603eb commit 0564d65

File tree

4 files changed

+10
-56
lines changed

4 files changed

+10
-56
lines changed

.github/workflows/generate-client.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666
if git diff --staged --quiet; then
6767
echo "No changes to commit"
6868
else
69-
git commit -m "🎨 Auto format"
69+
git commit -m "🎨 Auto format and update with pre-commit"
7070
git push
7171
fi
7272
- uses: pre-commit-ci/lite-action@v1.1.0
7373
if: env.HAS_SECRETS == 'false'
7474
with:
75-
msg: 🎨 Auto format
75+
msg: 🎨 Auto format and update with pre-commit
7676
- name: Error out on pre-commit errors
7777
if: steps.precommit.outcome == 'failure'
7878
run: exit 1

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ repos:
3939
require_serial: true
4040
language: unsupported
4141
types: [python]
42+
43+
- id: generate-frontend-sdk
44+
name: Generate Frontend SDK
45+
entry: bash ./scripts/generate-client.sh
46+
pass_filenames: false
47+
language: unsupported
48+
files: ^backend/.*$|^scripts/generate-client\.sh$

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"workspaces": [
55
"frontend"
66
],
7-
"scripts": {
7+
"scripts": {
88
"dev": "bun run --filter frontend dev",
99
"lint": "bun run --filter frontend lint",
1010
"test": "bun run --filter frontend test",

0 commit comments

Comments
 (0)