Docs Links #142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docs Links | |
| on: | |
| pull_request: | |
| schedule: | |
| - cron: '0 9 * * 1' # Weekly on Mondays at 09:00 UTC | |
| jobs: | |
| internal-links: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install deps (clean) | |
| run: npm ci --no-audit --no-fund | |
| - name: Check internal docs links | |
| run: npm run docs:check-links | |
| external-links: | |
| if: github.event_name == 'schedule' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install deps (clean) | |
| run: npm ci --no-audit --no-fund | |
| - name: Check external docs links | |
| run: npm run docs:check-links:external |