ci: auto-fix formatting on PRs instead of just checking

This commit is contained in:
End Nightshade 2026-02-16 22:53:12 -07:00
parent c57945de63
commit a163b054db
No known key found for this signature in database

View file

@ -50,16 +50,10 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting (PR)
if: github.event_name == 'pull_request'
run: pnpm prettier --check "src/**/*.{ts,tsx,css}" "*.{json,js,cjs,ts,md}"
- name: Fix formatting (push to main)
if: github.event_name == 'push'
- name: Run prettier
run: pnpm format
- name: Commit formatting fixes
if: github.event_name == 'push'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-format with prettier"