{"id":51553963,"url":"https://github.com/stablekernel/cascade-example-monorepo","last_synced_at":"2026-07-10T03:00:23.485Z","repository":{"id":370304973,"uuid":"1293799227","full_name":"stablekernel/cascade-example-monorepo","owner":"stablekernel","description":"Cascade example: one repository, several independently released components (monorepo)","archived":false,"fork":false,"pushed_at":"2026-07-08T20:05:32.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-08T21:14:48.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stablekernel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-08T15:34:25.000Z","updated_at":"2026-07-08T20:05:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stablekernel/cascade-example-monorepo","commit_stats":null,"previous_names":["stablekernel/cascade-example-monorepo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stablekernel/cascade-example-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stablekernel%2Fcascade-example-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stablekernel%2Fcascade-example-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stablekernel%2Fcascade-example-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stablekernel%2Fcascade-example-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stablekernel","download_url":"https://codeload.github.com/stablekernel/cascade-example-monorepo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stablekernel%2Fcascade-example-monorepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35318757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-10T03:00:15.129Z","updated_at":"2026-07-10T03:00:23.479Z","avatar_url":"https://github.com/stablekernel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cascade-example-monorepo\n\nA worked example of a **monorepo** managed by\n[cascade](https://github.com/stablekernel/cascade). One repository holds two\ndeliverables that version, promote, hotfix, and roll back independently, each\ndescribed as a **component** in a single manifest.\n\n## What This Repository Shows\n\n| Component | Path | Tag line | Ladder |\n|-----------|------|----------|--------|\n| `api` | `services/api` | `api-` | `dev` -\u003e `staging` -\u003e `prod` |\n| `web` | `apps/web` | `web-` | `dev` -\u003e `staging` -\u003e `prod` |\n\nBoth components share the trunk, the CLI pin, and the environment ladder as\ntop-level defaults. Each owns its own subtree, its own tag namespace, and its own\nversion line. A commit under `services/api/**` advances the `api-` line and leaves\n`web-` untouched, and the reverse holds for `apps/web/**`.\n\nCascade records each component's state under its own `state.components.\u003cname\u003e`\nsubtree, generates one workflow per component per lane, and derives a\nper-component concurrency group so promoting `api` never queues behind or cancels\na `web` operation.\n\n## Layout\n\n| Path | Purpose |\n|------|---------|\n| `.github/manifest.yaml` | Pipeline definition: shared defaults plus the two-component block. |\n| `.github/workflows/orchestrate-api.yaml`, `orchestrate-web.yaml` | Generated. Build and cut a `dev` prerelease per component on trunk commits under its path. |\n| `.github/workflows/promote-api.yaml`, `promote-web.yaml` | Generated. Promote each component along its own ladder and publish its release. |\n| `.github/workflows/cascade-hotfix-api.yaml`, `cascade-hotfix-web.yaml` | Generated. Per-component hotfix. |\n| `.github/workflows/cascade-rollback-api.yaml`, `cascade-rollback-web.yaml` | Generated. Per-component rollback. |\n| `.github/workflows/build-api.yaml`, `deploy-api.yaml`, `build-web.yaml`, `deploy-web.yaml` | Local build and deploy callbacks, one pair per component. |\n| `.github/workflows/scenario-suite.yaml` | End-to-end driver that proves independent per-component advancement. |\n| `services/api/`, `apps/web/` | Placeholder component sources so path-scoped versioning has a subtree to key on. |\n\n## Getting Started\n\n### Prerequisites\n\n- A `CASCADE_STATE_TOKEN` repository secret with `contents: write` and\n  `actions: write` scope, so cascade can commit state back to trunk and dispatch\n  the promote and hotfix workflows.\n\n### Triggering Pipelines\n\nPush a change under `services/api/**` to start the `api` orchestrate run, cut an\n`api-` prerelease, and deploy to `dev`. When `dev` is verified, run **Actions -\u003e\npromote-api** to advance `api` along its ladder. The same holds for `web` under\n`apps/web/**` and **promote-web**. Each component moves on its own schedule.\n\n## What the Test Driver Validates\n\n`.github/workflows/scenario-suite.yaml` runs weekly (and on demand) and asserts:\n\n| Job | Validates |\n|-----|-----------|\n| `reset` | Manifest state resets cleanly. |\n| `advance-api` | An `api`-only change cuts and promotes the `api-` line to `prod`, while `web`'s state subtree and `web-` tag namespace stay empty. |\n| `advance-web` | A later `web`-only change advances the `web-` line while `api`'s already-published `prod` state and `api-` tags survive untouched. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstablekernel%2Fcascade-example-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstablekernel%2Fcascade-example-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstablekernel%2Fcascade-example-monorepo/lists"}