docs.yml 611 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Docs
  2. on:
  3. push:
  4. branches-ignore:
  5. - "dependabot/**"
  6. pull_request:
  7. workflow_dispatch:
  8. env:
  9. FORCE_COLOR: 2
  10. NODE: 18
  11. permissions:
  12. contents: read
  13. jobs:
  14. bundlewatch:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Clone repository
  18. uses: actions/checkout@v4
  19. with:
  20. persist-credentials: false
  21. - name: Set up Node.js
  22. uses: actions/setup-node@v3
  23. with:
  24. node-version: "${{ env.NODE }}"
  25. cache: npm
  26. - name: Install npm dependencies
  27. run: npm ci
  28. - name: Build docs
  29. run: npm run docs-compile