8
0
Просмотр исходного кода

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

Piotrek Koszuliński 7 лет назад
Родитель
Сommit
0de472e2f6
2 измененных файлов с 7 добавлено и 6 удалено
  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.
 	# Release the CKEditor5 repository.
 	node ./scripts/release/release-ckeditor5.js
 	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
 	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.
 	# Update all `stable` branches in all packages.
 	mgit exec 'git checkout stable && git merge master && git checkout master'
 	mgit exec 'git checkout stable && git merge master && git checkout master'
 
 
@@ -34,9 +37,6 @@ then
 	# Push the `stable` branches.
 	# Push the `stable` branches.
 	git push origin stable master && \
 	git push origin stable master && \
 	mgit exec 'git push origin stable'
 	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
 else
 	echo "Update the \"Releases\" section in README.md before starting the release process."
 	echo "Update the \"Releases\" section in README.md before starting the release process."
 fi
 fi

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

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