Skip to main content
Version: 1.0

Examples

Complete, copy-ready release setups, one page per ecosystem and one per delivery target, each with the config, the scripts its stages run, and the terminal output of a real run. Every dispat transcript in this section was produced by running dispat against a throwaway repository; only timestamps and durations are normalized. Lines printed by your own commands (the npm, docker, butler lines) come from those commands, so yours will differ.

You do not need a monorepo to start. One folder, one package, one publish is a valid setup, and growing into a graph later is additive: no restructuring, and the versions already published stay the baselines everything counts from. That matters because a repository holding one deliverable rarely keeps holding one. A game gains a landing page, a docs site, an SDK and a server; a library gains a CLI and a demo. Each of those is one more block in the same file rather than one more release script nobody maintains. A single package is the smallest form, and A game, from one package to many walks the growth step by step.

If a term is new, Concepts defines all of them in a few minutes of reading, and One repository or many is the page for deciding the shape before you commit to it.

Read one page, then one more. An npm monorepo is the shortest complete setup and the best first read whatever you build, because every other page is the same four pieces with different commands in them. After that, go to the page for your own ecosystem below. If you are bringing dispat to a repository that already ships versions, Adopting dispat is the second read instead.

Ecosystem by ecosystem

One page per package manager, each with a config you can copy, the scripts its stages run, and a real run.

ExampleWhat it covers
An npm monorepoPackage scripts, a build and a publish, versions from commits.
A pnpm workspaceworkspace: ranges, the shared lock file, and pnpm publish mid-release.
A Go module workspaceTag-driven versions, the replace link bracket, and why tagFormat matters.
A Cargo workspacepath dependencies, [patch.crates-io] links, and workspace inheritance.
A Python monorepopyproject.toml and requirements*.txt reconciled in one pass.
Maven modulespom.xml, ${property} skips, and parent-managed versions.
A Gradle library and its version cataloglibs.versions.toml, version.ref, and literal coordinates.
.NET packagesdotnet pack, project references, and central package management.
Composer packagesVersions from tags, and a composer.json with no version field.
Ruby gemsGemspecs, Gemfiles, and the VERSION constant a writer will not touch.
A Flutter app and its packagespubspec.yaml, the +N build number, and dependency_overrides.
An iOS app and a CocoaPods libraryInfo.plist, project.pbxproj, Podfiles and podspecs.
An Android appGradle, a monotonic versionCode, and a bundle on the GitHub release.
A Docker image chainImages depending on images, where a build needs its base published.

Game development

ExampleWhat it covers
A game, from one package to manyOne game today; a landing page, docs, an SDK and a server later. Godot and Unity.
Publishing to Steamsteamcmd, depots, and release channels mapped onto Steam branches.
Publishing to itch.iobutler, one channel per platform, and the version players see.

Shipping artifacts

ExampleWhat it covers
Cross-platform binariesFour targets, checksums, and assets attached to the GitHub release.
Helm charts that follow the imageappVersion and image tags written by the run that pushed the image.
A site deployed from the releaseA docs or marketing site published during the run, with a CI-only guard.

Shaping the repository

The pages above are about one ecosystem each. These are about the repository around them, and they apply whatever you build.

ExampleWhat it covers
A single package, no monorepodispat on a repository with one thing in it, and what changes when it grows.
Adopting dispatDeriving the graph and the starting versions from the manifests, in a new repository or one that already ships.
Keeping configuration beside the codeSpace and package config files in their own folders, and .dispatexclude.
npm and Docker in one graphTwo ecosystems, one graph: the mixed case dispat was built for.
Registry login, once per spaceThe login slot: one authentication per space, whatever the registry.

Which example covers my manifest

dispat reads and writes thirty-five manifest formats. Every one of them is worked through on one of these pages.

ManifestExample
package.jsonnpm, pnpm
go.modGo
Cargo.tomlRust
pyproject.toml, requirements*.txtPython
composer.jsonPHP
pom.xmlMaven
*.csproj, *.fsproj, *.vbproj, *.nuspec, Directory.Packages.props, packages.config.NET
pubspec.yamlFlutter and Dart
Gemfile, *.gemspecRuby
Podfile, *.podspec, Info.plist, project.pbxprojApple
AndroidManifest.xml, build.gradle, build.gradle.ktsAndroid, Gradle
libs.versions.tomlGradle
Dockerfile, Containerfile, compose.yamlDocker
Packages/manifest.json, ProjectSettings/ProjectSettings.assetUnity
project.godot, plugin.cfg, export_presets.cfgGodot
*.uproject, *.uplugin, Config/DefaultGame.ini, Config/DefaultEngine.iniUnreal
game.project, project.json, gem.jsonGames

A version that lives in none of these, a Helm Chart.yaml, a README install line, a plain text file somewhere, is handled by the replace strategy and worked through on the Helm page.

The pages under Editing the monorepo are the other half of the worked examples: the commands that change files across many packages between releases. How a release behaves once it covers more than one package is under Releasing, starting with shared versions, and the CI side is under dispat in CI.