diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index 0631f298..0f5b2e91 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -156,6 +156,8 @@ jobs: done - name: Commit version bump + env: + HUSKY: 0 run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" diff --git a/.husky/pre-commit b/.husky/pre-commit index b6c9553b..bb471b6e 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,7 +1,8 @@ -# Run validation before commit (typecheck + lint + format + tests) -bun run validate +# Run quick checks before commit (typecheck + lint + format only) +# Tests are run by CI - no need to duplicate locally +bun run typecheck && bun run lint:fix && bun run format:check -# Validate UI if changes detected +# Validate UI if changes detected (typecheck + lint only) if git diff --cached --name-only | grep -q "^ui/"; then echo "[i] UI changes detected, running ui:validate..." bun run ui:validate diff --git a/package.json b/package.json index 923de752..9e021c6b 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,8 @@ "ui:build": "cd ui && bun run build", "ui:preview": "cd ui && bun run preview", "ui:validate": "cd ui && bun run validate", - "prepublishOnly": "bun run build:all && bun run validate && node scripts/sync-version.js", - "prepack": "bun run build:all && bun run validate && node scripts/sync-version.js", + "prepublishOnly": "node scripts/sync-version.js", + "prepack": "node scripts/sync-version.js", "prepare": "husky", "postinstall": "node scripts/postinstall.js" },