CKEditor 5 release tools
Tasks used during a release of CKEditor 5 and related packages.
More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.
Release tools
Usage
npm i --save-dev @ckeditor/ckeditor5-dev-release-tools
Then create a script that run tasks:
require( '@ckeditor/ckeditor5-dev-release-tools' ).generateChangelogForSinglePackage( );
require( '@ckeditor/ckeditor5-dev-release-tools' ).generateChangelogForMonoRepository( );
require( '@ckeditor/ckeditor5-dev-release-tools' ).bumpVersions( );
require( '@ckeditor/ckeditor5-dev-release-tools' ).releaseSubRepositories( );
Generating changelog
This tool can generate a changelog file based on commits in the repository. It can also propose what should be the next release version (according to SemVer).
Read more about the git commit message convention implemented by this tool.
Creating a release for multiple repositories
Note: Before running the bumping versions task you need to generate the changelog for changes in the version to be released.
The process implemented by the tool:
- Read a new release version from the changelog (the last header),
- Filter out packages which won't be released (no changes or dependencies has not changed),
- Update new versions of packages in
package.json
for all released packages, - Commit these changes as
Release: vX.Y.Z.
, - Create a tag
vX.Y.Z
.
Publishing changes
Note: Before publishing changes you need to bump versions in all dependencies.
The process implemented by the tool:
- Compares versions released on NPM and GitHub. Based on that, the tool know what should be published. You can call the same script multiple times and nothing wrong happens.
- If choose publish on NPM: the tool publish changes on NPM.
- If choose publish on GitHub: the tool creates a GitHub release. Notes for the release are taken from the changelog.
- If nothing was selected: the tool does nothing. No publish, no push, no creating releases.
Changelog
See the CHANGELOG.md
file.
License
Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md
file.
42.0.0 (2024-07-29)
We are excited to announce a new major release of the @ckeditor/ckeditor5-dev-*
packages.
Release highlights
This release brings the updated configuration for the build tools. As it might produce output incompatible with the previous settings, this release is marked as a major bump.
The @ckeditor/ckeditor5-dev-build-tools
package now supports a new globals
option, which allows passing pairs of external package names and associated global variables used in the umd
build.
Additionally, the global names for the ckeditor5
and ckeditor5-premium-features
packages in the UMD builds have been changed to CKEDITOR
and CKEDITOR_PREMIUM_FEATURES
respectively.