Skip to content

Commit 8a8d11f

Browse files
gmoonclaude
andcommitted
Fix deploy workflow and add git hooks via husky
Deploy was failing because deploy.yml didn't build the @forkzero/ui workspace before the main build (CI workflow had this step but deploy didn't). Also sets up husky to enforce make pre-commit on commit and make pre-push on push automatically. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 983c982 commit 8a8d11f

5 files changed

Lines changed: 29 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci
3030

31+
- name: Build design system
32+
run: npm run build -w packages/ui
33+
3134
- name: Build
3235
run: npm run build
3336

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
make pre-commit

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
make pre-push

package-lock.json

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"private": true,
44
"version": "0.1.0",
55
"type": "module",
6-
"workspaces": ["packages/*"],
6+
"workspaces": [
7+
"packages/*"
8+
],
79
"scripts": {
810
"dev": "vite",
911
"build": "tsc -b && vite build && tsx scripts/prerender.ts",
@@ -14,7 +16,8 @@
1416
"lint": "eslint src scripts packages/ui/src",
1517
"lint:fix": "eslint src scripts packages/ui/src --fix",
1618
"format": "prettier --write 'src/**/*.{ts,tsx}' 'scripts/**/*.ts' 'packages/ui/src/**/*.{ts,tsx}'",
17-
"format:check": "prettier --check 'src/**/*.{ts,tsx}' 'scripts/**/*.ts' 'packages/ui/src/**/*.{ts,tsx}'"
19+
"format:check": "prettier --check 'src/**/*.{ts,tsx}' 'scripts/**/*.ts' 'packages/ui/src/**/*.{ts,tsx}'",
20+
"prepare": "husky"
1821
},
1922
"dependencies": {
2023
"@giscus/react": "^3.1.0",
@@ -29,6 +32,7 @@
2932
"@vitest/coverage-v8": "^3.2.4",
3033
"eslint": "^9.39.2",
3134
"eslint-plugin-react-hooks": "^7.0.1",
35+
"husky": "^9.1.7",
3236
"prettier": "^3.8.1",
3337
"tsx": "^4.19.0",
3438
"typescript": "^5.7.0",

0 commit comments

Comments
 (0)