@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.
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.1.
|
|
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
|
@@ -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 (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
113
|
+
tools.logInfo('probable new version : ' + newVersion);
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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 += '-
|
|
123
|
+
newVersion += '-snapshot-' + Date.now();
|
|
120
124
|
}
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
126
|
-
|
|
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);
|