From 1d9eeb74b9542de721df36f6885b11d6cdee3013 Mon Sep 17 00:00:00 2001 From: noise Date: Tue, 30 Dec 2025 01:23:35 +0800 Subject: [PATCH] ci(autofix): add formatting ci process --- .github/workflows/autofix.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 0000000..30f721b --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,30 @@ +name: autofix.ci + +on: + pull_request: +permissions: + contents: write + +jobs: + autofix: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v5 + + - name: Use Node.js lts/* + uses: actions/setup-node@v4 + with: + node-version: lts/* + + - name: Setup + run: npm i -g @antfu/ni + + - name: Install + run: nci + + - name: Lint + run: nr lint:fix + + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27