autofix.yml 829 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  13. - name: Install pnpm
  14. uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
  15. - name: Install Node.js
  16. uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
  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@7a166d7532b277f34e16238930461bf77f9d7ed8