Skip to content

Commit

Permalink
format when committing, only build docs on docs change
Browse files Browse the repository at this point in the history
  • Loading branch information
stutrek committed Oct 8, 2024
1 parent e226668 commit 249d91f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- 'docs/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
npx biome check --staged
npm run format - - --staged --no-errors-on-unmatched
npx biome check --staged --no-errors-on-unmatched
tsc --noEmit

0 comments on commit 249d91f

Please sign in to comment.