Skip to content

Commit 08a4038

Browse files
committed
ci(broken-link-checker): add GitHub Actions for broken link checking
- The workflow is scheduled to run every weekday at 13:00 UTC. - This will catch broken links of tanstack.com
1 parent 73c7ce6 commit 08a4038

File tree

3 files changed

+903
-3
lines changed

3 files changed

+903
-3
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Broken link checker
2+
3+
on:
4+
schedule:
5+
- cron: '0 13 * * 1-5'
6+
workflow_dispatch:
7+
8+
jobs:
9+
broken-link-checker:
10+
name: Broken link checker
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Git Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: .nvmrc
21+
cache: pnpm
22+
- name: Install Packages
23+
run: pnpm install --frozen-lockfile
24+
- run: pnpm blc https://tanstack.com -ro --excludeExternalLinks

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"@types/react-dom": "^18.3.1",
8686
"@types/remove-markdown": "^0.3.4",
8787
"autoprefixer": "^10.4.18",
88+
"broken-link-checker": "^0.7.8",
8889
"dotenv-cli": "^8.0.0",
8990
"eslint": "^8.57.0",
9091
"eslint-plugin-unicorn": "^49.0.0",

0 commit comments

Comments
 (0)