unicorn-demo-app 9.0.4 → 9.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unicorn-demo-app",
3
- "version": "9.0.4",
3
+ "version": "9.1.0",
4
4
  "main": "src/index.js",
5
5
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@ function validateEnv() {
32
32
  }
33
33
  return (
34
34
  process.env.BUILDKITE_BRANCH === 'master' ||
35
- process.env.BUILDKITE_BRANCH === 'release' ||
35
+ process.env.BUILDKITE_MESSAGE?.match?.(/^release$/i) ||
36
36
  process.env.BUILDKITE_MESSAGE === 'snapshot'
37
37
  );
38
38
  }
@@ -54,7 +54,8 @@ function versionTagAndPublish() {
54
54
  }
55
55
 
56
56
  function findCurrentPublishedVersion() {
57
- return exec.execSyncRead(`npm view ${process.env.npm_package_name} dist-tags.latest`);
57
+ const pkg = isRelease ? process.env.npm_package_name : 'react-native-ui-lib';
58
+ return exec.execSyncRead(`npm view ${pkg} dist-tags.latest`);
58
59
  }
59
60
 
60
61
  function tryPublishAndTag(version) {