Skip to content

Release

Releases are tags, not npm packages. A consumer pins the tag:

opencode plugin add github:we-the-rebel-alliance/gws-plugin#v0.0.3

Cutting a release

A release is prepared in one pull request, chore(release): prepare vX.Y.Z, with:

  • the version in package.json and package-lock.json;
  • the CHANGELOG.md section;
  • npx plugin-kit docs if the manifest changed;
  • the native/provenance.json record for the gws version, and the candidate manifest/native.json the native workflow produced on master, when the gws version changed.

The owner pushes the tag after master's CI passed. The release workflow then:

  1. checks that the tag names the package's version;
  2. runs npm run check;
  3. writes manifest/native.json for the tag being released, keeping the commit, run and workflow that built the gzips and naming the tag in the manifest and every asset URL, so the tarball and the attached native.json both name the release tag;
  4. writes the conformance report with npx plugin-kit check --json and packs the tarball;
  5. copies manifest/native.json to native.json, native/provenance.json to native-provenance.json and the gws-<target>.gz files, and writes SHA256SUMS from inside the release folder, so each sum names its file by bare name and sha256sum -c SHA256SUMS passes in the folder a person downloads;
  6. checks the release files against SHA256SUMS;
  7. creates the GitHub Release with the tarball, conformance.json, SHA256SUMS, the gws-<target>.gz files, native.json and native-provenance.json.

The gws files are the pinned upstream binaries, built once by the native workflow on master; a release does not rebuild them. manifest/native.json in the repository keeps the tag of that native run, and the release step rewrites it for the tag it publishes. A tag that is not v<package.json version> is refused. npm run release:dry-run prints the native.json the next release would attach and writes nothing.

The release names the native files explicitly. manifest/native.json downloads the gzips, so a directory glob would upload a directory instead of the named assets.

Never push a tag or publish by hand. Only the owner decides a release; an agent never pushes a tag on its own.

The version line

Only the latest release on plugin-contract v0 is supported. While the plugin is 0.x, a minor release may break; a vulnerability fix ships as a patch release on that line.