Releasing
A release publishes the container image ghcr.io/kollaudo/kollaudo, the Helm chart
oci://ghcr.io/kollaudo/charts/kollaudo, the CLI @kollaudo/cli on npm, and a GitHub release. The
release notes are the section of CHANGELOG.md, followed by the pull requests GitHub lists for the
release, with the people who contributed for the first time.
Pushing a tag v<version> starts release.yml, which refuses
the tag unless:
- it points to a commit on
main; - Kollaudo’s verdict of the commit in
ciispass, under the rules ofkollaudo.yaml; - every
package.jsoninapps/,packages/ande2e/has that version (tests check that theVERSIONconstants of the server and the CLI match them); charts/kollaudo/Chart.yamlhas thatversionandappVersion;- the quick start of
README.mduses that version (export KOLLAUDO_VERSION=<version>), so that it points to the files and packages of the release, not tomain; CHANGELOG.mdhas a section## [<version>] - <date>.
A version with a suffix, such as 0.2.0-rc.1, is a pre-release: the image doesn’t get the
latest and 0.2 tags, the CLI is published under the npm tag next, and the GitHub release is
marked as a pre-release.
-
On a branch, set the version in every
package.json, in theVERSIONconstants ofapps/server/src/app.tsandpackages/cli/src/run.ts, and asversionandappVersionofcharts/kollaudo/Chart.yaml, and in the quick start ofREADME.md. Date the section ofCHANGELOG.md, and move what it adds from “Next” to “Today” in the README. Merge the pull request. -
Tag the merge commit and push the tag.
Wait until CI is green on that commit first: the
gatejob asks Kollaudo for the verdict of the commit inci, and stops the release unless the testskollaudo.yamlrequires passed. If the tag was pushed too early, re-run thegatejob once CI is done. If Kollaudo can’t be reached, the gate stops the release too: bring the instance back, then re-run thegatejob.Terminal window git switch main && git pullgit tag v0.1.0git push origin v0.1.0 -
Follow the workflow in the Actions tab.
-
Approve the CLI: the workflow stages
@kollaudo/cli, and it goes live on npm only when a maintainer approves it, with two-factor authentication. On npmjs.com, open Staged Packages and approve the version, or runnpm stage list @kollaudo/cliandnpm stage approve <stage-id>. Check the version before approving: a staged version can also be rejected.
One-time setup
Section titled “One-time setup”npm can only trust a workflow for a package that already exists, so the first version of the CLI is published by hand, before its tag. The workflow then sees it on npm and skips it.
-
On npmjs.com, create the
kollaudoorganization, and turn on two-factor authentication. -
From an up-to-date
main, publish the CLI:Terminal window pnpm install && pnpm --filter @kollaudo/cli buildcd packages/cli && npm pkg delete devDependencies scripts && pnpm packnpm loginnpm publish kollaudo-cli-0.1.0.tgz --access publicThe published manifest has no
devDependencies, which point to private workspace packages such as@kollaudo/schema, and noscripts. Rungit restore package.jsonafterwards. -
In the settings of
@kollaudo/clion npmjs.com, add a trusted publisher: GitHub Actions, organizationkollaudo, repositorykollaudo, workflowrelease.yml. Leave its allowed action tonpm stage publish, as npm recommends: the workflow can stage a version, and only a person with 2FA can make it public. Then, under Publishing access, require two-factor authentication and disallow tokens. -
After the first release, open the
kollaudopackage in the organization’s Packages on GitHub, and in Package settings change its visibility to public. Images on ghcr.io are private until then. Do the same for thecharts/kollaudopackage after the first release with the Helm chart.