8
0

publish.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 publish changes.
  9. //
  10. // You can test the whole process using `dry-run` mode. It won't change anything in the project
  11. // and any repository. Nothing will be pushed. Instead of `npm publish`, the `npm pack` command will be called.
  12. //
  13. // Note: This task based on versions published on NPM and GitHub. If something went wrong, you can call this script one more time.
  14. //
  15. // This task should be executed after: `npm run release:bump-version`.
  16. //
  17. // Use:
  18. // npm run release:publish -- --dry-run
  19. /* eslint-disable max-len */
  20. require( '@ckeditor/ckeditor5-dev-env' )
  21. .releaseSubRepositories( {
  22. cwd: process.cwd(),
  23. packages: 'packages',
  24. releaseBranch: 'release',
  25. emptyReleases: [
  26. 'ckeditor5'
  27. ],
  28. packageJsonForEmptyReleases: {
  29. ckeditor5: {
  30. description: 'A set of ready-to-use rich text editors created with a powerful framework. Made with real-time collaborative editing in mind.'
  31. }
  32. },
  33. dryRun: process.argv.includes( '--dry-run' )
  34. } );
  35. /* eslint-enable max-len */