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.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 calls the organisation's reusable plugin release workflow on the tag:
- it checks that the tag is on
masterand names the version inpackage.json; - it writes
conformance.jsonfromplugin-kit checkagainst the committeddist/, packs the tarball, and writesSHA256SUMSby bare filename, then checks the files against it; - 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¶
A Git install does not update by itself: remove the exact tag you installed and add the next one.