fix(chat): one producer per bubble for a server-fired turn's preview (#3432) #3373
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: Deploy docs to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['docs/**', 'package.json', 'package-lock.json', '.github/workflows/docs.yml'] | |
| # PR-level gate (#976): vitepress fails the build on parse errors AND dead links, | |
| # so running docs:build here catches doc breakage at review time instead of letting | |
| # it merge green and only go red on the main-only deploy. Build-only — no deploy. | |
| # Unfiltered on purpose: `build` is a REQUIRED check in the main ruleset, and a | |
| # path-filtered required check never reports on non-matching PRs, blocking them | |
| # forever. Running everywhere (~30s) is the price of making red docs unmergeable | |
| # (a dead link once automerged and froze the Pages deploy on every main push). | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| # Ref-scoped so a PR build never serializes behind (or cancels) the main pages | |
| # deploy — each ref gets its own group; main keeps a stable group of its own. | |
| group: pages-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest # workspace-config: allow-hosted-runner public repo — GH-hosted is free | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm install -g npm@11 # keep resolution npm-11-consistent with the lockfile (see PROTO.md) | |
| - run: npm install | |
| - run: npm run docs:build | |
| - uses: actions/upload-pages-artifact@v5 | |
| # Only needed to feed the deploy job — skip on PRs (build-only gate). | |
| if: github.event_name != 'pull_request' | |
| with: | |
| path: docs/.vitepress/dist | |
| deploy: | |
| needs: build | |
| # Never deploy from a PR — PRs only validate the build above. Fork-friendly | |
| # (#1534): deploys to protoLabs' GitHub Pages, so only the canonical repo runs | |
| # it — a fork without Pages configured would otherwise get a deploy error. The | |
| # `build` job above is unguarded on purpose: forks want it (catches VitePress breakage). | |
| if: github.event_name != 'pull_request' && github.repository == 'protoLabsAI/protoAgent' | |
| runs-on: ubuntu-latest # workspace-config: allow-hosted-runner public repo — GH-hosted is free | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |