autofix.yml 692 B

12345678910111213141516171819202122232425262728293031323334
  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@v5
  13. - name: Install pnpm
  14. uses: pnpm/action-setup@v4.2.0
  15. - name: Install Node.js
  16. uses: actions/setup-node@v6
  17. with:
  18. node-version-file: '.node-version'
  19. registry-url: 'https://registry.npmjs.org'
  20. cache: 'pnpm'
  21. - run: pnpm install
  22. - name: Run eslint
  23. run: pnpm run lint --fix
  24. - name: Run prettier
  25. run: pnpm run format
  26. - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27