@eui/tools 4.21.8 → 4.21.9
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/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/scripts/utils/git-utils.js +9 -5
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.21.
|
|
1
|
+
4.21.9
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 4.21.9 (2022-03-25)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* enabled debug on git commit stage - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([39692e79](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/39692e7992573e4f9cf41c7c1675b7fb524b2489))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 4.21.8 (2022-03-24)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ const { getPackageConfig } = require('./notification/config');
|
|
|
11
11
|
// const versionUtils = require('./version-utils');
|
|
12
12
|
|
|
13
13
|
// FETCH ARGS
|
|
14
|
-
const { dryRun, git } = tools.getArgs();
|
|
14
|
+
const { dryRun, git, debug } = tools.getArgs();
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
const getLastTag = (folder) => {
|
|
@@ -105,15 +105,19 @@ const commitAndPush = (branch, message, folder) => {
|
|
|
105
105
|
} catch (e2) {
|
|
106
106
|
tools.logError('ERROR');
|
|
107
107
|
console.log('ERROR!!!');
|
|
108
|
+
if (debug) {
|
|
109
|
+
console.log(e2);
|
|
110
|
+
}
|
|
108
111
|
|
|
109
112
|
try {
|
|
110
113
|
tools.logInfo('Commit and push - second try - retrying pull push');
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
execa.sync('git', ['push', 'origin', branch], { cwd: folder });
|
|
114
|
-
// }, 8000);
|
|
114
|
+
execa.sync('git', ['pull', 'origin', branch], { cwd: folder });
|
|
115
|
+
execa.sync('git', ['push', 'origin', branch], { cwd: folder });
|
|
115
116
|
|
|
116
117
|
} catch (e3) {
|
|
118
|
+
if (debug) {
|
|
119
|
+
console.log(e3);
|
|
120
|
+
}
|
|
117
121
|
throw new Error(`Failed to push ${message} to ${folder}`);
|
|
118
122
|
}
|
|
119
123
|
}
|