Skip to Content

Release flow

Just Shipped fits around the release tool you already use. It never creates a tag or a release, and it commits nothing to your default branch.

The three steps

  1. Preview. When a release pull request opens or updates, justshipped preview generates the bundle, pushes its text files and pictures behind the words to a branch of their own, justshipped/<version> (the bundle branch), and creates or updates one comment on the pull request showing the notes.
  2. Refine. Edit the files on the bundle branch on GitHub, or locally in the studio, whose Push to release button commits and pushes for you. A file you edited is kept on the next preview; tick its box in the comment to have it written again.
  3. Ship. When the release is published, justshipped ship takes the bundle from the branch exactly as it is, draws the images again from their sidecars, writes the Release body, attaches the bundle zip, runs every other target in the config (scheduler drafts, a webhook, ...), and deletes the branch.

With review.require_approval: true (see review), ship sends approved pieces only. If a target is skipped because its piece is not approved, ship keeps the bundle branch (making it if there was none), records there what it did send, and says which pieces wait. Approve them in the studio, Push to release, and run ship again by hand (workflow_dispatch): what was already sent is updated, not made again. Ship runs in CI, so it sees the approvals only when review.share_on_branch is on: approvals are kept on the computer they were made on by default.

Both commands read the GitHub event and do nothing, with exit 0, on an event that is not theirs, so one workflow can call them on every event.

      - uses: cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0
        with:
          args: preview # or: ship
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

AI in CI needs a provider key secret. Without one, and with no model.provider in the config, the run is rules-only; a provider named in the config whose key is missing fails with exit 5. Add --no-ai to args for a rules-only run. GitHub Action has the inputs and permissions.

What counts as a release pull request

Release toolPreview runs onExample workflow
release-pleaseits release PRrelease-please.yml
Changesetsthe "Version Packages" PRchangesets.yml
semantic-releasepull requests to the default branch, with the version from a dry runsemantic-release.yml
noneany pull request labeled release:preview

The tool is inferred from the repository, or set with release.tool.

Single-shot mode

With no release pull request, generate and ship in one run:

When ship finds no bundle branch it generates the bundle in the same run. If the published release's body already holds the notes, the run does nothing, so a re-run never replaces reviewed notes; a manual run writes them again.

Ranges and versions

By default a release ends at HEAD and starts at the previous release tag. v1.2.3 and 1.2.3 are both release tags.

justshipped generate --to v2.0.0          # the release that ends at this tag
justshipped generate v1.0.0..v2.0.0       # an explicit range
justshipped generate --version 2.0.0      # name the version yourself
  • A stable release starts at the previous stable tag; a pre-release at the previous tag of any kind. A pre-release bundle skips social and store outputs unless release.prerelease turns them on.
  • In a monorepo, set release.tag_pattern (web@*) and release.paths ([apps/web]) so only that app's tags and changes count.
  • Squash-merge and merge-commit histories both work. When a pull request and its commits are both collected, the pull request is what is listed.

Untagged releases

For continuous deployment with no tags, each run covers everything since the last shipped release. The end of the last shipped release is kept in a git ref, justshipped/<app>/last by default, and versions are dates such as 2026.11.30. See merge-to-main.yml and release.untagged.

Other hosts

preview and ship are for GitHub. On GitLab, Gitea, Forgejo or any other CI, run justshipped generate and then justshipped publish, with a gitlab-release or gitea-release target for the Release body: see GitLab CI/CD, any CI and Targets.

Re-runs

Every step can run again safely. The preview comment, the Release body, the zip asset and a pull request are updated in place, and a scheduler updates the drafts it made instead of creating new ones, using the ids recorded in the bundle's published.json. Details are in Targets.

Edit on GitHub

On this page