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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
  13. - name: Install pnpm
  14. uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
  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