chore: upgrade example app and library deps to RN 0.87 #229
Workflow file for this run
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: docs build | |
| on: | |
| pull_request: | |
| paths: | |
| - 'docs/**' | |
| - '.github/workflows/docs-build.yml' | |
| workflow_dispatch: | |
| jobs: | |
| docs-build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docs | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: yarn | |
| cache-dependency-path: | | |
| yarn.lock | |
| docs/yarn.lock | |
| - name: Install library dependencies (local source) | |
| working-directory: ${{ github.workspace }} | |
| run: yarn install --immutable | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Typecheck docs | |
| working-directory: ${{ github.workspace }} | |
| run: yarn typecheck:docs | |
| - name: Build docs | |
| run: yarn build | |
| - name: Check docs llms.txt | |
| run: | | |
| file=build/llms.txt | |
| if [ ! -s "$file" ]; then | |
| echo "::error::$file is missing or empty" | |
| exit 1 | |
| fi | |
| count=$(grep -cE '^- \[[^]]+\]\(https://docs\.swmansion\.com/react-native-enriched-html/[^)]+\)' "$file" || true) | |
| if [ "$count" -eq 0 ]; then | |
| echo "::error::$file lists no pages" | |
| exit 1 | |
| fi | |
| echo "llms.txt lists $count pages" |