Release¶
Releases are tags, not npm packages. A consumer pins the tag:
Cutting a release¶
A release is prepared in one pull request, chore(release): prepare vX.Y.Z, with:
- the version in
package.jsonandpackage-lock.json; - the
CHANGELOG.mdsection; npx plugin-kit docsif the manifest changed;- the
native/provenance.jsonrecord for thegwsversion, and the candidatemanifest/native.jsonthenativeworkflow produced onmaster, when thegwsversion changed.
The owner pushes the tag after master's CI passed. The release workflow then:
- checks that the tag names the package's version;
- runs
npm run check; - writes
manifest/native.jsonfor 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 attachednative.jsonboth name the release tag; - writes the conformance report with
npx plugin-kit check --jsonand packs the tarball; - copies
manifest/native.jsontonative.json,native/provenance.jsontonative-provenance.jsonand thegws-<target>.gzfiles, and writesSHA256SUMSfrom inside the release folder, so each sum names its file by bare name andsha256sum -c SHA256SUMSpasses in the folder a person downloads; - checks the release files against
SHA256SUMS; - creates the GitHub Release with the tarball,
conformance.json,SHA256SUMS, thegws-<target>.gzfiles,native.jsonandnative-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.