Skip to Content
Welcome to RitoSwap's documentation!
CI / CDPipelinesDocs & Storybook Pipeline

Docs and Storybook Pipeline

This pipeline ships the docs site and the UI Storybook. It uses path filtering to avoid unnecessary runs and separates dapp lint/test from docs lint/test.

Triggers and change detection

TriggerDetails
push / pull_requestRuns on main for changes in dapp/** or docs/**
workflow_dispatchManual run from GitHub Actions UI
paths-filterSets dapp and docs flags for conditional jobs
⚠️

Workflow or action file changes alone do not trigger this pipeline. Use workflow_dispatch when adjusting CI/CD logic.

Job flow

  1. Change detection: dorny/paths-filter marks whether dapp or docs changed.
  2. Storybook lint/test: runs only when dapp changes or manual dispatch.
  3. Deploy Storybook: main branch only, runs after lint/test if dapp changed.
  4. Docs lint/test: runs when docs or dapp changes, plus manual dispatch.
  5. Deploy docs: main branch only, after docs lint/test, and waits for Storybook deploy if it ran.

Workflow Diagram

Storybook details

  • Linting uses the shared run-eslint action with strict: true.
  • Vitest tests run via run-vitest-tests with Codecov disabled.
  • Deployment uses the Vercel CLI directly and publishes a prebuilt Storybook output in .vercel/output.

Docs site details

  • Lint and tests run inside the docs workspace.
  • Deployment uses the vercel-deploy action in prebuilt mode (CI builds locally for stability).

Docs deploy waits for Storybook deploy if the dapp changed. If Storybook lint/test or deploy fails, docs deploy is blocked. If Storybook did not run, docs deploy proceeds once docs lint/test succeeds.

Remote Vercel builds are still available if we want to switch back (flip mode to remote in the deploy job).

Required secrets

NameUsed for
VERCEL_TOKENStorybook deploy and docs deploy
VERCEL_ORG_IDStorybook deploy and docs deploy
VERCEL_PROJECT_IDStorybook deploy and docs deploy
Last updated on

RitoSwap Docs does not store, collect or access any of your conversations. All saved prompts are stored locally in your browser only.