@eui/tools 5.1.4 → 5.1.5

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
- 5.1.4
1
+ 5.1.5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.1.5 (2022-04-28)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * old remote delivery issues on version upgrade - adapted metadata version for app delivery - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([0499f9f0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0499f9f0ba9b4df56c39773922a3f721476e9a82))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.1.4 (2022-04-28)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -54,7 +54,7 @@ module.exports.storeMetadata = (project, newVersion, envTarget) => {
54
54
  }
55
55
 
56
56
  versions.push({
57
- name: newVersion,
57
+ version: newVersion,
58
58
  releaseDate: appReleaseDate,
59
59
  envTarget: envTarget
60
60
  });
@@ -98,36 +98,47 @@ module.exports.getNewVersion = (
98
98
 
99
99
  tools.logInfo(`Current version found : ${currentVersion}`);
100
100
 
101
- const release = getReleaseType(commits);
102
- tools.logInfo('release info found : ' + JSON.stringify(release));
103
-
104
101
  let newVersion = '1.0.0';
105
102
 
106
- if (isNextBranch) {
107
- newVersion = semver.inc(currentVersion, 'prerelease');
108
- } else {
109
- newVersion = semver.valid(release.releaseType) || semver.inc(currentVersion, release.releaseType)
110
- }
103
+ if (commits) {
104
+ const release = getReleaseType(commits);
105
+ tools.logInfo('release info found : ' + JSON.stringify(release));
106
+
107
+ if (isNextBranch) {
108
+ newVersion = semver.inc(currentVersion, 'prerelease');
109
+ } else {
110
+ newVersion = semver.valid(release.releaseType) || semver.inc(currentVersion, release.releaseType)
111
+ }
111
112
 
112
- tools.logInfo('probable new version : ' + newVersion);
113
+ tools.logInfo('probable new version : ' + newVersion);
113
114
 
114
- if (isSnapshot) {
115
- if (pkg.backend) {
116
- if (pkg.build && pkg.build.nodejs) {
117
- newVersion += '-snapshot-' + Date.now();
115
+ if (isSnapshot) {
116
+ if (pkg.backend) {
117
+ if (pkg.build && pkg.build.nodejs) {
118
+ newVersion += '-snapshot-' + Date.now();
119
+ } else {
120
+ newVersion += '-SNAPSHOT';
121
+ }
118
122
  } else {
119
- newVersion += '-SNAPSHOT';
123
+ newVersion += '-snapshot-' + Date.now();
120
124
  }
121
- } else {
122
- newVersion += '-snapshot-' + Date.now();
125
+
126
+ } else if (isSupportBranch) {
127
+ if (pkg.backend) {
128
+ newVersion = semver.inc(currentVersion, 'prerelease');
129
+ }
130
+ } else if (isHotfixBranch) {
131
+ newVersion = semver.inc(currentVersion, 'prerelease');
123
132
  }
124
133
 
125
- } else if (isSupportBranch) {
126
- if (pkg.backend) {
134
+ } else {
135
+ tools.logInfo('No commits found for version processing...applying minor version upgrade');
136
+
137
+ if (isNextBranch) {
127
138
  newVersion = semver.inc(currentVersion, 'prerelease');
139
+ } else {
140
+ newVersion = semver.inc(currentVersion, 'minor');
128
141
  }
129
- } else if (isHotfixBranch) {
130
- newVersion = semver.inc(currentVersion, 'prerelease');
131
142
  }
132
143
 
133
144
  tools.logSuccess('new version generated : ' + newVersion);