From d5f9b9f5ecab53febf65c0a9b0709ceafeb120b5 Mon Sep 17 00:00:00 2001 From: ocavue Date: Thu, 5 Dec 2024 00:22:01 +1100 Subject: [PATCH] ci: add autofix-ci (#107) --- .github/workflows/fix.yml | 22 ++++++++++++++++++++++ package.json | 1 + 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/fix.yml diff --git a/.github/workflows/fix.yml b/.github/workflows/fix.yml new file mode 100644 index 0000000..d559ec1 --- /dev/null +++ b/.github/workflows/fix.yml @@ -0,0 +1,22 @@ +# https://autofix.ci/setup + +name: autofix.ci + +on: + pull_request: + +permissions: + contents: read + +jobs: + fix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: ./.github/actions/setup + + - name: Fix + run: pnpm run fix + + - uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c diff --git a/package.json b/package.json index 2808245..fd831fe 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "test:install": "pnpm --filter=e2e test:install", "changeset": "changeset", "lint": "eslint .", + "fix": "eslint . --fix", "release": "changeset publish", "prepare": "husky" },