Skip to content

ci: deploy storybook on main push and build-check it on PRs#260

Merged
maksimzinchuk merged 1 commit into
mainfrom
ci/fix-storybook-deploy
Jul 22, 2026
Merged

ci: deploy storybook on main push and build-check it on PRs#260
maksimzinchuk merged 1 commit into
mainfrom
ci/fix-storybook-deploy

Conversation

@maksimzinchuk

Copy link
Copy Markdown
Collaborator

Problem

Storybook stopped building and deploying after the shell release. The reusable storybook-ci.yml is a workflow_call workflow with no push trigger of its own — it relied on a caller to invoke it. That caller lived in main.yml, which was deleted during the release-automation refactor (5fb35c7f5, splitting into ci.yml + publish.yml). Neither replacement re-wired the Storybook invocation, so the workflow became orphaned and only ran on manual workflow_dispatch.

Result: pushes to main (including the release commit) never rebuilt or redeployed Storybook. The vc-shell-storybook.govirto.com preview went stale.

Separately, Storybook was never built on PRs at all — no job runs yarn build:storybook pre-merge, so a broken story (bad import, invalid syntax) passes every check and only fails after merge.

Changes

  • ci.ymlstorybook job — re-adds the caller for the reusable storybook-ci.yml on push to main / feat/redesign, with secrets: inherit. It intentionally omits the release: skip guard the static-checks/test jobs carry, so the release commit redeploys Storybook too.
  • ci.ymlstorybook-build job — PR-only, build-only validation: yarn buildyarn build:storybook, no Docker push, no ArgoCD deploy. Catches broken stories in review.
  • README.md — updated the stale Storybook trigger description and documented both new jobs.

Notes

  • PRs deliberately run only the lightweight storybook-build check, not the full reusable workflow — the latter would push an image and deploy to the shared vcmp-dev env, and every PR would clobber the others.
  • secrets: inherit (vs the old main.yml passing only VCMP_PLATFORM_TOKEN) also makes the previously-empty REPO_TOKEN / Jira secrets available inside storybook-ci.
  • The storybook-build check runs on this very PR (workflow changes apply to pull_request from the head branch), so it doubles as live verification that Storybook builds.

The reusable storybook-ci.yml lost its caller when main.yml was removed
during the release-automation refactor, so Storybook stopped building and
deploying on pushes to main (release commits included). Nothing invoked the
workflow anymore — it only ran on manual dispatch.

Re-add the caller as a `storybook` job in ci.yml (push to main / feat/redesign,
secrets inherited, no `release:` skip guard) so a release also redeploys
Storybook. Add a build-only `storybook-build` job on pull_request that runs
`yarn build` then `yarn build:storybook` with no Docker push or deploy, so a
broken story fails review instead of surfacing after merge. Update the
workflows README to match.
@github-actions

Copy link
Copy Markdown

📦 Preview published for commit a8bd3a7

Install the preview with dist-tag:

npm install @vc-shell/framework@pr-260

Or pin to the exact commit:

npm install @vc-shell/framework@2.2.0-pr260.a8bd3a7

Published packages (dist-tag pr-260, version 2.2.0-pr260.a8bd3a7):

  • @vc-shell/framework
  • @vc-shell/api-client-generator
  • @vc-shell/create-vc-app
  • @vc-shell/config-generator
  • @vc-shell/migrate
  • @vc-shell/ts-config
  • @vc-shell/mf-config
  • @vc-shell/mf-host
  • @vc-shell/mf-module
  • @vc-shell/vc-app-skill

@maksimzinchuk
maksimzinchuk merged commit 828d0f3 into main Jul 22, 2026
9 checks passed
@maksimzinchuk
maksimzinchuk deleted the ci/fix-storybook-deploy branch July 22, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant