From b3ce66e4ebb7ddb343b4208fb811f243f2806bce Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Fri, 19 Jul 2024 19:23:10 +1000 Subject: [PATCH] ci: Add autofix.yml --- .github/workflows/autofix.yml | 29 +++++++++++++++++++++++++++++ scripts/config.js | 5 +---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 000000000..9635a1faa --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,29 @@ +name: autofix.ci # needed to securely identify the workflow + +on: + pull_request: + push: + branches: [main, alpha, beta] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + autofix: + name: autofix + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Tools + uses: tanstack/config/.github/setup@629cd3152485cbe985f5a7e66d370c858132c517 + - name: Fix formatting + run: pnpm prettier:write + - name: Apply fixes + uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a + with: + commit-message: 'ci: apply automated fixes' diff --git a/scripts/config.js b/scripts/config.js index 3437bcc3e..4da21515e 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -54,15 +54,12 @@ export const branchConfigs = { main: { prerelease: false, }, - next: { + alpha: { prerelease: true, }, beta: { prerelease: true, }, - alpha: { - prerelease: true, - }, } const __dirname = fileURLToPath(new URL('.', import.meta.url))