Skip to content
Castellan
Steward's icon

Concept · Steward

Read as

How the Steward releases

Which versions the Steward releases and when, the two ways it can release a repository (a tag, or your own release command), where the release notes come from, the Assayer's release check, and what happens when a release fails.

Article
1306
Applies to
Steward 0.36.158
Last reviewed
For
For developers
Written for Steward 0.36.158. Steward is at 0.36.354 now (40 small releases since: what changed).

What it releases#

A repository is released when its branch carries a version that has no release yet: whether a pull request you merged raised it, or it was pushed straight to the branch.

Only in a repository the Steward has a way to release: Release each new version when you looked after it, or the Release field in Castellan's Settings > Developer > Repositories. With that field empty, it's never released, and its row says not released.

Releases always come from the branch itself, at its commit, never from a pull request's branch, so a release and its branch never drift apart. A version below one already released isn't released: see Versions merged out of order.

When it releases#

  • At its builds, while it's on duty and Builds and releases by itself is on: at each build time, the newest commit on the branch is tested once, unless a vouch covers it, and released when it passes. See You merge, it builds.
  • At once, for an urgent fix, while Builds and releases by itself is on: a commit whose changelog entry has a line starting **Urgent fix: builds on its own at the next round.
  • When you ask: Release on its page, for the repositories you check (it asks first), or release from a terminal. It releases at once, without testing first. Run now builds too, when a build time has passed since its last build.

On several PCs, only the PC whose turn it is releases a repository. See The Steward on several PCs.

Two ways to release#

ReleaseWhat the Steward does
tagMakes the release itself. On GitHub, a release with the tag v<version> at the branch's commit, titled "<Name> <version>". Worked with plain git, an annotated v<version> tag at that commit, pushed to the repository.
A command, such as npm run releaseRuns it in a fresh worktree of the branch, at that commit, with its packages installed when it needs them. The command must make the release v<version> in the repository itself. One that finishes without it is a failed release.

Either way, the release goes to the repository's own host, never anywhere else.

Release notes#

For a tag release, the notes are the version's entry in CHANGELOG.md, at the commit released, together with the entries of any versions merged since the release before and never released on their own. With no entry, GitHub writes the notes from the commits since the last release.

An entry in this shape reads well as release notes:

## 1.4.3

**One line that says what this version is about.**

### What's new

- New things a person using it will notice.

### What changed

- Changes and fixes to what was there.

Checked first, where the Assayer is#

Where the Assayer is installed (0.4.22 or later, with Developer options on), and Waits for the Assayer's release check is on in the Steward's settings, each release waits for the Assayer's check of its commit before it's published: the versions agree and are the next step, every merged pull request has its changelog line, and an agent is released under its own name. A check that doesn't pass holds the release, and says why ("waits for the Assayer's release check: …", with a link to the check); after 6 hours it's an alarm. Without the Assayer, a release goes out without your OK, and says so. The Assayer's own releases are never held by it.

When a release fails#

  • It isn't tried again at the same commit. The build says so, and it's an alarm at once, with what failed. See The Steward's alarms.
  • Once it's fixed, choose Release on the Steward's page, or merge a new commit: the next build tries that.

The usual causes: gh signed out, the repository's own release command failing, or a release command that doesn't make the release. See When the Steward isn't working as it should.

Telling other pages#

After a release, the Steward tells Castellan's update check, as its own button would. A build tells them once, when it ends. One that doesn't answer within 5 seconds is only a line in the log.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 1306. Every version of Steward, and what changed in it, is in its release notes.