Skip to content

Release

Releases are tags, not npm packages. A consumer pins the tag: github:we-the-rebel-alliance/slack-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 runs on the tag:

  1. it checks that the tag names the version in package.json;
  2. it runs npm run check, the whole gate;
  3. it packs the release files: the tarball, conformance.json from plugin-kit check, and SHA256SUMS;
  4. it checks the files against SHA256SUMS;
  5. it creates the GitHub release with those files and generated notes.

Each sum names its file by bare name, so sha256sum -c SHA256SUMS passes in the folder a person downloads.

A tag that names another version fails before anything is published.

Install a release

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

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