Skip to content

Release

A release is an annotated tag v<version> on a master commit whose CI passed. Only the owner decides a release; an agent never pushes a tag on its own.

Cut a release

A release is prepared in one pull request, chore(release): prepare vX.Y.Z: the version in package.json and package-lock.json, and the CHANGELOG.md section. After master's CI passed, the maintainer runs:

npx plugin-kit release <version>

The command requires the prepared files, runs the checks and creates the annotated tag. package.json and the tag must name the same version. Push the tag to let CI publish.

What CI publishes

The release workflow runs on the tag, checks the version, packs the release files, checks them against SHA256SUMS and creates the GitHub Release with:

  • the npm tarball;
  • conformance.json, from npx plugin-kit check --json;
  • SHA256SUMS, over the tarball and the conformance report, each named by its bare file name so sha256sum -c SHA256SUMS passes in the download folder.

There is no npm publish. A consumer installs the tag:

opencode plugin add github:we-the-rebel-alliance/granola-plugin#v<version>

Before a release

  • npm run check is green on master.
  • CHANGELOG.md names the change.
  • The docs build with mkdocs build --strict.