File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Content Check
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - ' **/*.md'
7+ - ' **/*.mdx'
8+ - ' contentlayer.config.ts'
9+ - ' package.json'
10+ - ' pnpm-lock.yaml'
11+ - ' next.config.mjs'
12+ - ' postcss.config.mjs'
13+ - ' tailwind.config.ts'
14+ - ' tsconfig.json'
15+
16+ jobs :
17+ check-content :
18+ runs-on : ubuntu-latest
19+ env :
20+ NEXT_TELEMETRY_DISABLED : ' 1'
21+ CI : ' true'
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - uses : pnpm/action-setup@v4
26+ with :
27+ version : 10
28+
29+ - uses : actions/setup-node@v4
30+ with :
31+ node-version : 20
32+ cache : ' pnpm'
33+
34+ - run : pnpm install --frozen-lockfile
35+ - run : pnpm run check:content
36+
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "dev" : " next dev" ,
77 "build" : " next build" ,
8- "start" : " next start"
8+ "start" : " next start" ,
9+ "check:content" : " contentlayer build"
910 },
1011 "dependencies" : {
1112 "next" : " ^15.5.3" ,
You can’t perform that action at this time.
0 commit comments