1
0

lint-md.yml 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Markdown Linting
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. - 'renovate/**'
  7. paths:
  8. - '.github/workflows/lint-md.yml'
  9. - '.nvmrc'
  10. - '.prettier*'
  11. - '**/*.md'
  12. - '!AUTHORS.md'
  13. - 'package.json'
  14. - 'yarn.lock'
  15. pull_request:
  16. paths:
  17. - '.github/workflows/lint-md.yml'
  18. - '.nvmrc'
  19. - '.prettier*'
  20. - '**/*.md'
  21. - '!AUTHORS.md'
  22. - 'package.json'
  23. - 'yarn.lock'
  24. jobs:
  25. lint:
  26. runs-on: ubuntu-latest
  27. steps:
  28. - name: Clone repository
  29. uses: actions/checkout@v3
  30. - name: Set up Node.js
  31. uses: actions/setup-node@v3
  32. with:
  33. cache: yarn
  34. node-version-file: '.nvmrc'
  35. - name: Install all yarn packages
  36. run: yarn --frozen-lockfile
  37. - name: Prettier
  38. run: yarn lint:md