@eui/tools 4.18.2 → 4.18.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
- 4.18.2
1
+ 4.18.3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 4.18.3 (2021-12-15)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * added support/develop flow for snapshot on support branches - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([d40e9718](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d40e9718a0ba194f7a2ce746032b0ffdce6dd106))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 4.18.2 (2021-12-13)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.18.2",
3
+ "version": "4.18.3",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -19,9 +19,9 @@ module.exports.getBranches = () => {
19
19
 
20
20
  const isSnapshot = (branch === 'develop');
21
21
  const isMaster = (branch === 'master');
22
- const isSupport = (!isMaster && !isSnapshot && branch.indexOf('support/') > -1);
22
+ const isSupportSnapshot = (!isMaster && !isSnapshot && branch.indexOf('support/develop') > -1);
23
+ const isSupport = (!isMaster && !isSnapshot && !isSupportSnapshot && branch.indexOf('support/') > -1);
23
24
  const isNext = (!isMaster && !isSnapshot && !isSupport && branch.indexOf('next/') > -1);
24
- const isSupportSnapshot = (!isMaster && !isSnapshot && !isSupport && !isNext);
25
25
 
26
26
  return {
27
27
  isSupport: isSupport,
@@ -178,7 +178,7 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
178
178
 
179
179
  // GET NEW VERSION from VALID commits found in metadata
180
180
  .then(() => {
181
- return versionUtils.package.getNewVersion(pkg, pkgMetadata.commits, branches.isSnapshot, branches.isNext, branches.isSupport);
181
+ return versionUtils.package.getNewVersion(pkg, pkgMetadata.commits, (branches.isSnapshot || branches.isSupportSnapshot), branches.isNext, branches.isSupport);
182
182
  })
183
183
 
184
184
 
@@ -187,7 +187,7 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
187
187
  newVersion = version;
188
188
 
189
189
  if (!dryRun) {
190
- return versionUtils.package.updateVersion(pkg, version, branches.isSnapshot, branches.isNext, branches.isSupport);
190
+ return versionUtils.package.updateVersion(pkg, version, (branches.isSnapshot || branches.isSupportSnapshot), branches.isNext, branches.isSupport);
191
191
  }
192
192
  })
193
193
 
@@ -288,7 +288,7 @@ module.exports.runGitOperations = (pkg, version) => {
288
288
 
289
289
  // TAG THE NEW RELEASE (MASTER) for MASTER and SUPPORT
290
290
  .then(() => {
291
- if (!branches.isSnapshot) {
291
+ if (!branches.isSnapshot && !branches.isSupportSnapshot) {
292
292
  return utils.git.tagVersion(
293
293
  version, branches.branch,
294
294
  `chore(release): tagging ${version} - from CI server`,