Release¶
Releases are tags, not npm packages. A consumer installs a tag, and dist/ is committed, so the install needs no build step.
Cutting a release¶
- Open one pull request,
chore(release): prepare vX.Y.Z, with the version inpackage.jsonandpackage-lock.json, theCHANGELOG.mdsection, andnpx plugin-kit docswhen the manifest changed. - Merge it once
master'sciis green. - The owner pushes the tag
vX.Y.Zon that commit. An agent never pushes a tag on its own.
What the tag does¶
The called release workflow checks that the tag is on master and names the version in package.json, writes the conformance report from the committed dist/, packs the tarball and writes SHA256SUMS with bare file names before it checks the files against them. It then creates a non-draft GitHub Release with those files. Each sum names its file by bare name, so sha256sum -c SHA256SUMS passes in the folder a person downloads. Releases are unsigned by default. A tag that names another version, or one that is not on master, fails before anything is published.
Installing a release¶
The consumer pins the tag, and OpenCode keeps it on the version it installed. A master install is never a release.