fix(web): move budget banner to persistent layout to prevent re-mount flicker #1264
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 CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/**" | |
| - "CONTRIBUTING.md" | |
| - ".github/workflows/docs-ci.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| docs-build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Detect docs changes | |
| id: changes | |
| shell: bash | |
| run: | | |
| if [[ "${{ github.event_name }}" == "pull_request" ]]; then | |
| BASE_SHA="${{ github.event.pull_request.base.sha }}" | |
| else | |
| BASE_SHA="${{ github.event.before }}" | |
| fi | |
| if [[ -z "$BASE_SHA" || "$BASE_SHA" == "0000000000000000000000000000000000000000" ]]; then | |
| echo "should_build=true" >> "$GITHUB_OUTPUT" | |
| exit 0 | |
| fi | |
| if git diff --name-only "$BASE_SHA" "${{ github.sha }}" | grep -E '^(docs/|CONTRIBUTING\.md$|\.github/workflows/docs-ci\.yml$)' >/dev/null; then | |
| echo "should_build=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "should_build=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Skip docs build when unchanged | |
| if: steps.changes.outputs.should_build != 'true' | |
| run: | | |
| echo "No docs changes detected; skipping docs build." | |
| - name: Setup pnpm | |
| if: steps.changes.outputs.should_build == 'true' | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.26.0 | |
| - name: Setup Node.js | |
| if: steps.changes.outputs.should_build == 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| cache-dependency-path: docs/pnpm-lock.yaml | |
| - name: Install docs dependencies | |
| if: steps.changes.outputs.should_build == 'true' | |
| run: pnpm install --frozen-lockfile | |
| - name: Build docs | |
| if: steps.changes.outputs.should_build == 'true' | |
| run: pnpm build |