From 28a8f78fc9d44e9f4abf05105193da0a3926bc2a Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Wed, 21 Oct 2026 15:02:02 -0600 Subject: [PATCH] ci: add autofix workflow that formats and fixes lint on pull requests Runs biome check --write on PRs and pushes any fixes back to the PR branch through autofix.ci, so formatting problems are fixed instead of failing lint-and-typecheck. --- .github/workflows/format.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..2a6065e8 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,33 @@ +name: autofix.ci + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v7 + with: + persist-credentials: false + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 24.4.0 + cache: "pnpm" + + - run: pnpm install --frozen-lockfile + + - name: Run Biome formatter and linter fixes + run: pnpm biome check --write + + - uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4