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.jsonandpackage-lock.json; - the
CHANGELOG.mdsection; npx plugin-kit docswhen 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:
What the tag does¶
.github/workflows/release.yml runs on the tag:
- it checks that the tag names the version in
package.json; - it runs
npm run check, the whole gate; - it packs the release files: the tarball,
conformance.jsonfromplugin-kit check, andSHA256SUMS; - it checks the files against
SHA256SUMS; - 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¶
A Git install does not update by itself: remove the exact tag you installed and add the next one.