Video 07 — Jordan wires up CI/CD + npm publishing
Protagonist: Jordan (Dev Lead) Arc: Setup Target length: 2:30 Apps in frame: Git Projects · Pass Manager · CI Monitor · Automation Studio
Story beat
Jordan’s the dev lead — cares about how code gets merged, tested, and shipped. Before anyone writes code, Jordan stands up the pipeline: GitHub Actions for test/lint/build, an npm publish job on tag, Chromatic for visual regression, and a RobOS automation rule that triggers a stage-demo on every merge. One sitting, everything future PRs will rely on.
Pre-seeded state
- Task Server configured (from Video 01), backlog populated (from Video 02).
- The
acme-corp/buildbarn-formsfork has the ad417f7 commit history but no.github/workflows/yet (or has placeholders we replace). acme/npm-publish-token+acme/chromatic-tokenare in Jordan’s pass store.
Scene list
- Git Projects (0:00–0:30) — Jordan opens the
buildbarn-formsproject. Clicks on the “CI/CD” tab. Empty state. - Authoring the workflow (0:30–1:15) — Uses the
ci.ymltemplate RobOS suggests. Modifies to add:npm test,npm run lint,npm run build, Playwright job, Chromatic publish job. Secrets mapped from Pass Manager via a dropdown. Save → RobOS commits.github/workflows/ci.yml+publish.ymlto a setup branch and opens a PR. - CI Monitor (1:15–1:45) — Jordan approves + merges the setup PR. CI Monitor shows the first run of the new pipeline executing, green ✓ for each job.
- Automation Studio (1:45–2:20) — Jordan opens Automation Studio → New Rule → event
pr.merged, conditionrepo = buildbarn-forms, actionrun stage-demo generator + post #eng-ship + advance linked issue to "staged". Save rule. - Close (2:20–2:30) — Dashboard shows the rule active, CI green, pipeline ready. Narration: “Now anything Alex merges flows through the same pipe, the same checks, the same notifications.”
Narration cues (draft)
| # | At | Text |
|---|---|---|
| 1 | 0:00 | Jordan’s the dev lead. Before anyone writes code, the pipeline gets wired up. |
| 2 | 0:20 | Git Projects generates a CI workflow template — Jordan tweaks it for the library’s stack. |
| 3 | 0:50 | Every secret the workflow needs maps to a Pass Manager entry. Nothing in plain text. |
| 4 | 1:20 | First run of the new pipeline. Test, lint, build, Playwright, Chromatic — all green. |
| 5 | 1:50 | Automation Studio adds the rule every PR will trigger: stage-demo on merge, notify the channel, advance the linked issue. |
| 6 | 2:25 | Pipeline is live. Every story from here on ships through the same path. |
Blockers / ready-checklist
- Git Projects’ “CI/CD” tab +
ci.ymltemplate generator — verify this is a real feature in v0.0.5 (may need to build or stub). - We don’t actually want to trigger Chromatic bills — point Chromatic token at a dead project or stub the publish-job in fake CI.
- Automation Studio’s
pr.mergedtrigger +advance linked issueaction — verify the exact event name and check that the rule editor exposes these action types.
Deliverables produced by this video
.github/workflows/ci.yml+publish.ymlinacme-corp/buildbarn-forms.- Automation Studio rule set persisted to
~/.config/robos/event-rules.json. - First green CI run visible in CI Monitor — used as fixture for video 05’s “existing green build” cold open.