docs: 챕터 24~26을 다듬어요 #57
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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Docusaurus Build + Broken Link Check | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| # Why: 이전 버전은 `pnpm lint | head -50` 형태로 `head`가 파이프라인을 SIGPIPE로 | |
| # 조기 종료시켜 ESLint 실패 exit code가 CI에 전파되지 않는 버그가 있었다. | |
| # 에이전트 친화 짧은 출력은 ESLint --format compact가 이미 담당하므로 파이프 제거. | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Format check | |
| run: pnpm format:check | |
| - name: Build | |
| # docusaurus.config.ts의 onBrokenLinks: 'throw'로 링크 깨짐 차단 | |
| # Why: 에이전트가 MDX 생성 시 상대경로·사이드바 ID 오타를 내면 사람이 발견하기 전에 CI에서 차단 | |
| run: pnpm build |