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 +1 -1
- package/scripts/releaseDemo.js +3 -2
package/package.json
CHANGED
package/scripts/releaseDemo.js
CHANGED
|
@@ -32,7 +32,7 @@ function validateEnv() {
|
|
|
32
32
|
}
|
|
33
33
|
return (
|
|
34
34
|
process.env.BUILDKITE_BRANCH === 'master' ||
|
|
35
|
-
process.env.
|
|
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
|
-
|
|
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) {
|