Skip to content

Release

A release is a tag, not an npm package. The Release workflow publishes it from the tag, and a host installs it as github:we-the-rebel-alliance/tavily-plugin#v<version>.

Prepare the release

The version and the CHANGELOG.md section are prepared in one pull request, chore(release): prepare vX.Y.Z, with the version in package.json and package-lock.json, the changelog section, and npx plugin-kit docs if the manifest changed. Merge it only when CI passed.

Cut the tag

On a master commit whose CI passed, level with origin/master and with nothing uncommitted, the lead runs:

npx plugin-kit release <version>

It runs the gate, checks the version and the CHANGELOG.md section, and cuts an annotated tag locally. It pushes nothing. The owner pushes the tag; an agent never pushes one.

What the workflow does

release.yml runs on a v* tag:

  1. It checks that the tag names package.json's version.
  2. It runs npm run check.
  3. It packs the tarball, writes the conformance report and SHA256SUMS, and checks the files against the sums. Each sum names its file by bare name, so sha256sum -c SHA256SUMS also passes in the folder a person downloads.
  4. It creates the GitHub Release with generated notes and those files.

NOTICE carries the licence of every package the bundle inlines, and a test checks it against the bundle's metafile. The tarball carries the runtime, the skills and the icons, and nothing else.

Install the release

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

A Git install does not update by itself: remove the exact tag and add the next one.