feat(reading): 长文阅读体验打磨 —— 行宽 / 章节进度 / 锚号 / 快捷键 #11
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: CI | |
| on: | |
| pull_request: | |
| branches: [master, main] | |
| # Also run on pushes to non-default branches so a manual `git push` can | |
| # surface lint / type errors before opening the PR. | |
| push: | |
| branches-ignore: [master, main] | |
| # Cancel any in-flight CI run on the same ref when a new commit lands. | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Type-check | |
| run: npm run typecheck | |
| # Build verifies frontmatter validation, search-index generation, and | |
| # the static export all succeed end-to-end. Slower than lint+tsc alone, | |
| # but catches things they can't (bad MDX, runtime route errors). | |
| - name: Build | |
| run: npm run build |