@getik-public/cli 1.3.0 → 1.3.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v1.3.1
2
+ Fixed bug on release branch check
3
+
4
+
1
5
  ### v1.3.0
2
6
  Added prebuild checks before any production builds for store
3
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getik-public/cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -499,7 +499,8 @@ function checkEnvironmentToBranchScheme(versions, options, callback) {
499
499
  callback(true);
500
500
  }
501
501
  } else if (options.environment === 'qa') {
502
- const requiredBranchName = `release/${versions.versionName.substring(0, versions.versionName.length - 2)}x`;
502
+ const splitVersionName = versions.versionName.split('.');
503
+ const requiredBranchName = `release/${splitVersionName[0]}.${splitVersionName[1]}.x`;
503
504
  if (branchName === requiredBranchName) {
504
505
  console.log('\x1b[32m PASSED! \x1b[0m');
505
506
  callback(false);