docs: add Context7 skill install command to README #32
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| commitlint: | |
| name: Lint Commit Messages | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: wagoid/commitlint-github-action@v6 | |
| with: | |
| configFile: commitlint.config.js | |
| test: | |
| name: Test (Node ${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Security checks | |
| run: pnpm security-check | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Build | |
| run: pnpm build | |
| - name: Bundle budget check | |
| run: pnpm size-check | |
| - name: Install docs app dependencies | |
| run: pnpm --dir apps/docs install --frozen-lockfile | |
| - name: Build docs app | |
| run: pnpm docs:build | |
| - name: Check package size | |
| run: | | |
| OUTPUT=$(npm pack --dry-run 2>&1) | |
| echo "$OUTPUT" | |
| SIZE=$(echo "$OUTPUT" | grep "package size" | awk '{print $NF}' | sed 's/kB//') | |
| if [ -n "$SIZE" ] && (( $(echo "$SIZE > 50" | bc -l 2>/dev/null || echo 0) )); then | |
| echo "Package size ($SIZE kB) exceeds 50 kB limit" | |
| exit 1 | |
| fi | |
| echo "Package size is within limits" |