prettier.yaml 579 B

1234567891011121314151617181920212223
  1. # @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
  2. name: JavaScript Prettier (run ./bw-dev prettier to fix)
  3. on:
  4. push:
  5. branches: [ main ]
  6. pull_request:
  7. branches: [ main ]
  8. jobs:
  9. lint:
  10. name: Lint with Prettier
  11. runs-on: ubuntu-20.04
  12. steps:
  13. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
  14. - uses: actions/checkout@v3
  15. - name: Install modules
  16. run: npm install prettier@2.5.1
  17. - name: Run Prettier
  18. run: npx prettier --check bookwyrm/static/js/*.js