@eui/tools 6.20.1 → 6.20.3

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.
@@ -1 +1 @@
1
- 6.20.1
1
+ 6.20.3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.20.3 (2024-08-07)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * standalone pkg release - fetch branch as argument to pipeline script - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([8ff5847e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8ff5847eab1b4981215ce9ae41a933f60e8a2e9a))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.20.2 (2024-08-07)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted branch-name fetch for standalone pkg builds - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([5059e861](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5059e86141128602044f41059ff6ff6578659bad))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.20.1 (2024-08-07)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.1",
3
+ "version": "6.20.3",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -50,14 +50,6 @@ const getBranches = module.exports.getBranches = () => {
50
50
  return getBranchDefs(branch);
51
51
  }
52
52
 
53
- const getBranchesFromRepo = module.exports.getBranchesFromRepo = () => {
54
- let branch = utils.git.getBranchName();
55
-
56
- return getBranchDefs(branch);
57
- }
58
-
59
-
60
-
61
53
 
62
54
 
63
55
  module.exports.getEnvTarget = () => {
@@ -342,13 +334,7 @@ module.exports.updateVersion = (pkg, pkgMetadata, envTarget) => {
342
334
  utils.tools.logBanner('UPDATE VERSION');
343
335
 
344
336
  // getting branch flags
345
- let branches;
346
-
347
- if (pkg.standalone) {
348
- branches = this.getBranchesFromRepo();
349
- } else {
350
- branches = this.getBranches();
351
- }
337
+ const branches = this.getBranches();
352
338
 
353
339
  // local vars
354
340
  let newVersion;
@@ -530,12 +516,8 @@ const tagAndMerge = (pkg, version, branches) => {
530
516
  module.exports.runGitOperations = (pkg, version) => {
531
517
  utils.tools.logBanner('RUN GIT OPERATIONS');
532
518
 
533
- let branches;
534
- if (pkg.standalone) {
535
- branches = this.getBranchesFromRepo();
536
- } else {
537
- branches = this.getBranches();
538
- }
519
+ const branches = this.getBranches();
520
+
539
521
  console.log(branches);
540
522
 
541
523
  if (pkg.remote && pkg.build && pkg.build.envTargetActive) {
@@ -16,7 +16,7 @@ const innerCommon = require('./common');
16
16
  // LOCAL TEST :
17
17
  // - symlink eUI tools sources to node_modules of standalone pkg folder node_modules to test
18
18
  // - execute this command on the standalone pkg folder :
19
- // npx @eui/tools release-package-standalone --dryRun --debug --debugNotification --skipCommitsCheck --skipAudit --skipPublish --skipGitUpdates
19
+ // npx @eui/tools release-package-standalone --dryRun --branch develop --debug --debugNotification --skipCommitsCheck --skipAudit --skipPublish --skipGitUpdates --skipLint --skipTest
20
20
 
21
21
 
22
22
  module.exports.run = () => {
@@ -34,7 +34,7 @@ module.exports.run = () => {
34
34
  const pkg = configUtils.packages.getStandalonePackage();
35
35
 
36
36
  // get branches config
37
- const branches = innerCommon.getBranchesFromRepo();
37
+ const branches = innerCommon.getBranches();
38
38
 
39
39
  return (
40
40
  Promise.resolve()
@@ -30,11 +30,6 @@ const getLastTag = (folder) => {
30
30
  });
31
31
  }
32
32
 
33
- const getBranchName = (folder = process.cwd()) => {
34
- const branchName = execa.sync('git', ['rev-parse','--abbrev-ref', 'HEAD'], { cwd: folder }).stdout;
35
- return branchName;
36
- }
37
-
38
33
  const getRepoUrl = (folder) => {
39
34
  return Promise.resolve()
40
35
  .then(() => {
@@ -428,7 +423,6 @@ module.exports.getGitHost = getGitHost;
428
423
  module.exports.getLastTag = getLastTag;
429
424
  module.exports.getTags = getTags;
430
425
  module.exports.hasCommitsSinceLastTag = hasCommitsSinceLastTag;
431
- module.exports.getBranchName = getBranchName;
432
426
  module.exports.commitAndPush = commitAndPush;
433
427
  module.exports.tagVersion = tagVersion;
434
428
  module.exports.mergeMasterToDevelop = mergeMasterToDevelop;