bump-versions.js 851 B

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