@eui/tools 6.12.54 → 6.12.55
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/sandbox.js +18 -7
- package/scripts/csdr/release/package/common.js +23 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.55
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.12.55 (2023-09-15)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* prevent unknown supported branches to be processed by build release - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([7a42606a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/7a42606a91fa9523b3cc5eedcce7438334fcc863))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.12.54 (2023-09-15)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -22,6 +22,7 @@ const apiUtils = require('./scripts/utils/api-utils');
|
|
|
22
22
|
const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
23
23
|
const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
24
24
|
|
|
25
|
+
|
|
25
26
|
// console.log(configUtils.packages.getPackages());
|
|
26
27
|
// console.log(configUtils.packages.getPackage('eui-tools'));
|
|
27
28
|
|
|
@@ -1329,16 +1330,26 @@ const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
|
1329
1330
|
// console.log(e);
|
|
1330
1331
|
// })
|
|
1331
1332
|
|
|
1332
|
-
Promise.resolve()
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1333
|
+
// Promise.resolve()
|
|
1334
|
+
// .then(() => {
|
|
1335
|
+
// const pkg = configUtils.remotes.getRemote('cc-task-details-eui15-remote-el-ui', true);
|
|
1336
|
+
// console.log(pkg);
|
|
1336
1337
|
|
|
1337
|
-
|
|
1338
|
-
|
|
1338
|
+
// const deps = installUtils.remotes.getDeps(pkg, 'TST');
|
|
1339
|
+
// console.log(deps);
|
|
1339
1340
|
|
|
1340
|
-
|
|
1341
|
+
// })
|
|
1342
|
+
|
|
1343
|
+
// .catch((e) => {
|
|
1344
|
+
// console.log(e);
|
|
1345
|
+
// })
|
|
1341
1346
|
|
|
1347
|
+
Promise.resolve()
|
|
1348
|
+
.then(() => {
|
|
1349
|
+
const util = require('./scripts/csdr/release/package/common');
|
|
1350
|
+
const branches = util.getBranches();
|
|
1351
|
+
console.log(branches);
|
|
1352
|
+
})
|
|
1342
1353
|
.catch((e) => {
|
|
1343
1354
|
console.log(e);
|
|
1344
1355
|
})
|
|
@@ -26,6 +26,12 @@ const getBranches = module.exports.getBranches = () => {
|
|
|
26
26
|
const isHotfix = (!isMaster && !isSnapshot && !isSupportSnapshot && !isSupport && branch.indexOf('hotfix/') > -1);
|
|
27
27
|
const isNext = (!isMaster && !isSnapshot && !isSupport && !isSupportSnapshot && !isHotfix && branch.indexOf('next/') > -1);
|
|
28
28
|
|
|
29
|
+
let valid = true;
|
|
30
|
+
|
|
31
|
+
if (!isSnapshot && !isMaster && !isSupportSnapshot && !isSupport && !isHotfix && !isNext) {
|
|
32
|
+
valid = false;
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
return {
|
|
30
36
|
isSupport: isSupport,
|
|
31
37
|
isSupportSnapshot: isSupportSnapshot,
|
|
@@ -33,7 +39,8 @@ const getBranches = module.exports.getBranches = () => {
|
|
|
33
39
|
isSnapshot: isSnapshot,
|
|
34
40
|
isMaster: isMaster,
|
|
35
41
|
isHotfix: isHotfix,
|
|
36
|
-
branch: branch
|
|
42
|
+
branch: branch,
|
|
43
|
+
valid: valid
|
|
37
44
|
}
|
|
38
45
|
}
|
|
39
46
|
|
|
@@ -182,6 +189,21 @@ module.exports.preReleaseChecks = (pkg) => {
|
|
|
182
189
|
return metadataUtils.common.isPipelineEnabled(pkg);
|
|
183
190
|
})
|
|
184
191
|
|
|
192
|
+
// CHECK BRANCH VALIDITY
|
|
193
|
+
.then(() => {
|
|
194
|
+
const branches = this.getBranches();
|
|
195
|
+
|
|
196
|
+
utils.tools.logTitle('Checking branch validity');
|
|
197
|
+
|
|
198
|
+
if (!branches.valid) {
|
|
199
|
+
utils.tools.logInfo('Branch not supported ... stopping : allowed branches are develop-master-next/-support/-hotfix/');
|
|
200
|
+
throw 'BRANCH_NOT_SUPPORTED';
|
|
201
|
+
|
|
202
|
+
} else {
|
|
203
|
+
utils.tools.logInfo('Branch is valid... processing');
|
|
204
|
+
}
|
|
205
|
+
})
|
|
206
|
+
|
|
185
207
|
// CHECKING PACKAGE LOCK STATE - AVOID SAME PACKAGE RUN issuing race conditions
|
|
186
208
|
.then(() => {
|
|
187
209
|
if (!pkg.backend) {
|