8
0

publish.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env node
  2. /**
  3. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  4. * For licensing, see LICENSE.md.
  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: `yarn run release:bump-version`.
  16. //
  17. // Use:
  18. // yarn 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. emptyReleases: [
  25. 'ckeditor5'
  26. ],
  27. packageJsonForEmptyReleases: {
  28. ckeditor5: {
  29. description: 'A set of ready-to-use rich text editors created with a powerful framework. Made with real-time collaborative editing in mind.'
  30. }
  31. },
  32. dryRun: process.argv.includes( '--dry-run' )
  33. } );
  34. /* eslint-enable max-len */