Skip to content

Release

Releases are tags, not npm packages. A consumer pins the tag: github:we-the-rebel-alliance/github-plugin#vX.Y.Z.

Prepare

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

  • the version in package.json and package-lock.json;
  • the CHANGELOG.md section;
  • npx plugin-kit docs when the manifest changed.

Merge it only once CI is green.

Cut

Only the owner decides a release. An agent never pushes a tag.

Once the release pull request is merged and master's CI passed, push the tag on that commit:

git tag vX.Y.Z
git push origin vX.Y.Z

What the tag does

.github/workflows/release.yml calls the organisation's reusable plugin release workflow on the tag:

  1. it checks that the tag is on master and names the version in package.json;
  2. it writes conformance.json from plugin-kit check against the committed dist/, packs the tarball, and writes SHA256SUMS by bare filename, then checks the files against it;
  3. it creates a non-draft GitHub release with those files and generated notes.

The build job runs the repository's code and holds no write token; the publish job runs no repository code and creates the Release. A tag that names another version, or is not on master, fails before anything is published.

Install a release

opencode plugin add github:we-the-rebel-alliance/github-plugin#vX.Y.Z

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