Browse Source

Internal: Passed a response from `devEnv.generateChangelogForSubRepositories()` task to `devEnv.generateSummaryChangelog()`. See ckeditor/ckeditor5-dev#573.

Marek Lewandowski 6 years ago
parent
commit
3a47a61443
1 changed files with 2 additions and 4 deletions
  1. 2 4
      scripts/release/changelog.js

+ 2 - 4
scripts/release/changelog.js

@@ -15,9 +15,7 @@
 const devEnv = require( '@ckeditor/ckeditor5-dev-env' );
 const commonOptions = {
 	cwd: process.cwd(),
-	packages: 'packages',
-	// `newVersion` is mostly used for testing purposes. It allows generating changelog that contains the same version for all packages.
-	newVersion: process.argv[ 2 ] || null
+	packages: 'packages'
 };
 const editorBuildsGlob = '@ckeditor/ckeditor5-build-*';
 
@@ -32,7 +30,7 @@ const optionsForBuilds = Object.assign( {}, commonOptions, {
 
 Promise.resolve()
 	.then( () => devEnv.generateChangelogForSubRepositories( optionsForDependencies ) )
-	.then( () => devEnv.generateSummaryChangelog( optionsForBuilds ) )
+	.then( response => devEnv.generateSummaryChangelog( Object.assign( optionsForBuilds, response ) ) )
 	.then( () => {
 		console.log( 'Done!' );
 	} )