Jelajahi Sumber

Internal: Prepared the release script for its initial launch. [skip ci]

Piotrek Koszuliński 7 tahun lalu
induk
melakukan
0de472e2f6
2 mengubah file dengan 7 tambahan dan 6 penghapusan
  1. 4 4
      scripts/release-ckeditor5.sh
  2. 3 2
      scripts/release/release-ckeditor5.js

+ 4 - 4
scripts/release-ckeditor5.sh

@@ -13,9 +13,12 @@ then
 	# Release the CKEditor5 repository.
 	node ./scripts/release/release-ckeditor5.js
 
-    # Update the `stable` branch in the ckeditor5 repository.
+	# Update the `stable` branch in the ckeditor5 repository.
 	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'
+
 	# Update all `stable` branches in all packages.
 	mgit exec 'git checkout stable && git merge master && git checkout master'
 
@@ -34,9 +37,6 @@ then
 	# Push the `stable` branches.
 	git push origin stable master && \
 	mgit exec 'git push origin stable'
-
-	# 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'
 else
 	echo "Update the \"Releases\" section in README.md before starting the release process."
 fi

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

@@ -95,7 +95,8 @@ 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 publish && cd ${ cke5Path }` );
+		tools.shExec( `cd ${ templatePath } && npm pack && cd ${ cke5Path }` );
 
 		// Remove files that were copy.
 		for ( const file of additionalFiles ) {
@@ -113,7 +114,7 @@ cli.provideToken()
 		} ).then( () => changelogVersion );
 	} )
 	.then( version => {
-		log.info( 'Restoring the package.json...' );
+		log.info( 'Restoring the package.json template...' );
 
 		// Restore the template `package.json` to state before the publishing process.
 		tools.updateJSONFile( packageJsonTemplatePath, () => packageJsonTemplateCopy );