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))