bump-versions.js 869 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env node
  2. /**
  3. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  4. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  5. */
  6. /* eslint-env node */
  7. 'use strict';
  8. // This scripts preparing all packages to release:
  9. // - checking what should be released,
  10. // - validates the whole process (whether the changes could be published),
  11. // - tagging new versions.
  12. //
  13. // You can test the whole process using `dry-run` mode. It won't change anything in the project
  14. // and any repository.
  15. //
  16. // This task must be called before: `npm run release:publish`.
  17. //
  18. // Use:
  19. // npm run release:bump-version -- --dry-run
  20. require( '@ckeditor/ckeditor5-dev-env' )
  21. .bumpVersions( {
  22. cwd: process.cwd(),
  23. packages: 'packages',
  24. releaseBranch: 'release',
  25. dryRun: process.argv.includes( '--dry-run' )
  26. } );