diff --git a/.github/workflows/fix-code-styles.yml b/.github/workflows/fix-code-styles.yml new file mode 100644 index 0000000..1241a54 --- /dev/null +++ b/.github/workflows/fix-code-styles.yml @@ -0,0 +1,25 @@ +name: Fix code styles + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'npm' + - run: npm ci + - run: npm run lint-fix + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Fix styling