From 9fd0ac0a2b13aa3cc30ca8b3da87c2a9bb5987c8 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 17 May 2023 22:44:21 +0100 Subject: [PATCH] ci: add autofix bot --- .github/workflows/autofix.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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 00000000..354aa99a --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,34 @@ +name: autofix.ci # needed to securely identify the workflow + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + code: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - run: corepack enable + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install + + - name: Dedupe dependencies + if: ${{ contains(github.head_ref, 'renovate') }} + run: pnpm dedupe + + - name: Update bundle size + run: pnpm vitest run bundle -u + + - uses: autofix-ci/action@8bc06253bec489732e5f9c52884c7cace15c0160 -- knotmirror 0.0.1