autofix.yml 622 B

123456789101112131415161718192021222324252627282930313233
  1. name: autofix.ci
  2. on:
  3. pull_request:
  4. permissions:
  5. contents: read
  6. jobs:
  7. autofix:
  8. runs-on: ubuntu-latest
  9. env:
  10. PUPPETEER_SKIP_DOWNLOAD: 'true'
  11. steps:
  12. - uses: actions/checkout@v4
  13. - name: Install pnpm
  14. uses: pnpm/action-setup@v2
  15. - name: Set node version to 18
  16. uses: actions/setup-node@v4
  17. with:
  18. node-version: 18
  19. cache: pnpm
  20. - run: pnpm install
  21. - name: Run eslint
  22. run: pnpm run lint --fix
  23. - name: Run prettier
  24. run: pnpm run format
  25. - uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84