@ckeditor/ckeditor5-dev-release-tools 47.1.0 → 48.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tasks/push.js CHANGED
@@ -3,8 +3,7 @@
3
3
  * For licensing, see LICENSE.md.
4
4
  */
5
5
 
6
- import { tools } from '@ckeditor/ckeditor5-dev-utils';
7
- import shellEscape from 'shell-escape';
6
+ import { simpleGit } from 'simple-git';
8
7
 
9
8
  /**
10
9
  * Push the local changes to a remote server.
@@ -22,7 +21,10 @@ export default async function push( options ) {
22
21
  cwd = process.cwd()
23
22
  } = options;
24
23
 
25
- const command = `git push origin ${ shellEscape( [ releaseBranch ] ) } v${ shellEscape( [ version ] ) }`;
24
+ const git = simpleGit( { baseDir: cwd } );
25
+ const remote = 'origin';
26
+ const tag = `v${ version }`;
26
27
 
27
- return tools.shExec( command, { cwd, verbosity: 'error', async: true } );
28
+ await git.push( remote, releaseBranch );
29
+ await git.raw( 'push', remote, tag );
28
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-release-tools",
3
- "version": "47.1.0",
3
+ "version": "48.0.0",
4
4
  "description": "Tools used for releasing CKEditor 5 and related packages.",
5
5
  "keywords": [],
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -22,7 +22,7 @@
22
22
  "lib"
23
23
  ],
24
24
  "dependencies": {
25
- "@ckeditor/ckeditor5-dev-utils": "^47.1.0",
25
+ "@ckeditor/ckeditor5-dev-utils": "^48.0.0",
26
26
  "@octokit/rest": "^21.0.0",
27
27
  "chalk": "^5.0.0",
28
28
  "cli-columns": "^4.0.0",