Release Workflows in Pictures

There is no single correct way to release a library, but most projects use one of a few recognisable shapes. This gallery describes each shape as a diagram, with a caption, the configuration that usually drives it, and when it fits. Read the captions as if they were sitting under a figure; the boxes and arrows they describe are simple enough to sketch on a whiteboard.

Figure 1: tag-driven release

Diagram: a straight line of commits on main. One commit carries a flag labelled v2.3.0. An arrow from the flag leads to a box labelled "CI: test, build, publish", and from there to the registry.

Caption. The maintainer decides when to release by creating a tag. CI reacts to the tag and does everything else. Simple, transparent and easy to reason about; the version number lives in the tag and in the manifest, so a check that they match is worth adding.

on:
  push:
    tags: ["v*"]

Figure 2: release pull request

Diagram: commits flow onto main. A bot opens a side branch labelled "release PR" that collects a version bump and changelog edits. When the pull request merges, an arrow leads to "tag + publish".

Caption. Tools in this family read commit messages written in the Conventional Commits style, propose the next version and draft the changelog. A human reviews the proposed release like any other pull request. Good for teams who want automation but also a deliberate moment of approval.

Figure 3: maintenance branches

Diagram: main continues to the right toward the next major. Two branches split off below it, labelled 1.x and 2.x, each with its own small tags. Curved arrows show fixes being cherry-picked from main down to each branch.

Caption. Used when you promise security or bug fixes for older majors. Each maintenance branch has its own release flow. The cost is real: every fix may need porting and testing several times. Publish the support window so users know which branches are alive.

Figure 4: monorepo fan-out

Diagram: one repository box containing several package boxes. A change touches two of them. An arrow from the merge leads to a "changed packages" filter, which fans out into two separate publish arrows, each with its own version number.

Caption. Each package in the repository keeps its own version. A release tool works out which ones changed, bumps them, updates internal dependency ranges and publishes only those. The tricky part is the ranges between sibling packages; get them wrong and users can install incompatible combinations.

Comparing the four shapes

ShapeWho decides the versionBest fitMain risk
Tag-drivenMaintainerSingle-package librariesTag and manifest drifting apart
Release PRTool proposes, human approvesTeams with consistent commit messagesPoor commit messages produce poor changelogs
Maintenance branchesMaintainer per branchLibraries with long-term support promisesWorkload multiplies per branch
Monorepo fan-outTool, per packageFamilies of related packagesInconsistent ranges between siblings

Whichever shape you pick, the final arrow into the registry should come from CI rather than a personal machine. For a single pipeline traced in full detail, see the release pipeline tutorial; for monorepo specifics, the session notes on monorepo releases.