GPL-2.0 License
Developed by Bradley Morris Human Made and the Wikimedia Foundation. Maintained by Human Made and the Wikimedia Foundation.
Stable tag:
This plugin follows Semantic Versioning.
In a nutshell, this means that patch releases, for example, 1.2.3, only contain backwards compatible bug fixes. Minor releases, for example, 1.2.0, may contain enhancements, new features, tests, and pretty much everything that does not break backwards compatibility. Every breaking change to public APIs—be it renaming or even deleting structures intended for reuse, or making backwards-incompatible changes to certain functionality—warrants a major release, for example, 2.0.0.
If you are using Composer to pull this plugin into your website build, choose your version constraint accordingly.
Even when bumping a major version, if the blocks provided by this plugin change in a backwards-incompatible way, a block deprecation should be added to let users migrate their visualizations to the new version of the block.
Release management is done using GitHub's built-in Releases functionality. When you tag a commit on the main
branch with a version number in the format v#.#.#
, a release action will trigger when that tag is pushed to GitHub.
The GitHub actions release workflow creates a new built release based on the contents of the tag you created.
It copies the tag's current state to a new tag of original/v.*.*.*
, then builds the project and pushes the built version to the original tag name v*.*.*
.
This allows composer to pull in a built version of the project without the need to run webpack to use it.
To prepare a release, follow these steps:
main
branch and that there are no uncommitted local changes.npm run bump:patch
: Update the project's version number to the next patch release number.npm run bump:minor
: Update the project's version number to the next minor release number.npm run bump:major
: Update the project's version number to the next major release number.v1.2.3
.main
branch and tag to GitHub.Once a release has been created, update the release's description using GitHub's interface to add patch notes. Release notes should be high-level but complete, detailing all New Features, Enhancements, Bug Fixes and potential other changes included in the according version.
Any code merged into the develop
branch will be build and committed to the release-develop
branch. This branch can be used in non-production applications to validate and test proposed changes.