Ver código fonte

Internal: Improved the release script. [skip ci]

Piotrek Koszuliński 7 anos atrás
pai
commit
78a8281294

+ 1 - 1
scripts/release-ckeditor5.sh

@@ -17,7 +17,7 @@ then
 	git checkout stable && git merge master && git checkout master
 
 	# Add `stable` branches in all repos which don't have them yet.
-	mgit exec 'git checkout -b stable && git push origin stable && git checkout master'
+	mgit exec 'git checkout -b stable 2> /dev/null && git push origin stable && git checkout master'
 
 	# Update all `stable` branches in all packages.
 	mgit exec 'git checkout stable && git merge master && git checkout master'

+ 3 - 2
scripts/release/release-ckeditor5.js

@@ -67,6 +67,8 @@ cli.provideToken()
 		// Bump the version.
 		tools.shExec( `npm version ${ changelogVersion } --message "Release: v${ changelogVersion }."`, { verbosity: 'error' } );
 
+		tools.shExec( 'git push origin master' );
+
 		const packageJson = require( packageJsonPath );
 
 		log.info( 'Copying the package.json...' );
@@ -95,8 +97,7 @@ cli.provideToken()
 		log.info( 'Publishing on npm...' );
 
 		// Publish the package on npm.
-		// tools.shExec( `cd ${ templatePath } && npm publish && cd ${ cke5Path }` );
-		tools.shExec( `cd ${ templatePath } && npm pack && cd ${ cke5Path }` );
+		tools.shExec( `cd ${ templatePath } && npm publish && cd ${ cke5Path }` );
 
 		// Remove files that were copy.
 		for ( const file of additionalFiles ) {