@ckeditor/ckeditor5-dev-release-tools 38.0.3 → 38.0.4

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.
@@ -22,7 +22,21 @@ module.exports = async function commitAndTag( { version, files, cwd = process.cw
22
22
  const normalizedCwd = toUnix( cwd );
23
23
  const filePathsToAdd = await glob( files, { cwd: normalizedCwd, absolute: true, nodir: true } );
24
24
 
25
- await tools.shExec( `git add ${ filePathsToAdd.join( ' ' ) }`, { cwd: normalizedCwd, async: true, verbosity: 'silent' } );
26
- await tools.shExec( `git commit --message "Release: v${ version }."`, { cwd: normalizedCwd, async: true, verbosity: 'silent' } );
27
- await tools.shExec( `git tag v${ version }`, { cwd: normalizedCwd, async: true, verbosity: 'silent' } );
25
+ if ( !filePathsToAdd.length ) {
26
+ return;
27
+ }
28
+
29
+ const shExecOptions = {
30
+ cwd: normalizedCwd,
31
+ async: true,
32
+ verbosity: 'silent'
33
+ };
34
+
35
+ // Run the command separately for each file to avoid exceeding the maximum command length on Windows, which is 32767 characters.
36
+ for ( const filePath of filePathsToAdd ) {
37
+ await tools.shExec( `git add ${ filePath }`, shExecOptions );
38
+ }
39
+
40
+ await tools.shExec( `git commit --message "Release: v${ version }." --no-verify`, shExecOptions );
41
+ await tools.shExec( `git tag v${ version }`, shExecOptions );
28
42
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-release-tools",
3
- "version": "38.0.3",
3
+ "version": "38.0.4",
4
4
  "description": "Tools used for releasing CKEditor 5 and related packages.",
5
5
  "keywords": [],
6
6
  "main": "lib/index.js",
7
7
  "dependencies": {
8
- "@ckeditor/ckeditor5-dev-utils": "^38.0.3",
8
+ "@ckeditor/ckeditor5-dev-utils": "^38.0.4",
9
9
  "@octokit/rest": "^17.9.2",
10
10
  "chalk": "^4.0.0",
11
11
  "cli-table": "^0.3.1",