@swell/cli 2.0.5 → 2.0.7
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.
|
@@ -92,11 +92,16 @@ behavior by using the --no-git-tag option.`;
|
|
|
92
92
|
this.log(`${style.appConfigValue(this.app.name)} latest remote version is ${style.appConfigValue(latestVersion.version)}.`);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
|
-
|
|
95
|
+
nextVersion = remoteVersion;
|
|
96
|
+
if (!nextVersion) {
|
|
97
|
+
this.error(`${style.appConfigValue(this.app.name)} has not been versioned yet.`);
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
100
|
return;
|
|
98
101
|
}
|
|
99
|
-
|
|
102
|
+
else {
|
|
103
|
+
nextVersion = this.validateAndComputeVersion(nextVersion, remoteVersion);
|
|
104
|
+
}
|
|
100
105
|
await this.pushAppConfigs();
|
|
101
106
|
await this.deployAppFrontend(false, false);
|
|
102
107
|
if (!message) {
|
|
@@ -123,7 +128,7 @@ behavior by using the --no-git-tag option.`;
|
|
|
123
128
|
await this.gitTag(nextVersion);
|
|
124
129
|
}
|
|
125
130
|
catch (error) {
|
|
126
|
-
spinner.fail(error.message);
|
|
131
|
+
spinner.fail(error.stderr || error.message);
|
|
127
132
|
return;
|
|
128
133
|
}
|
|
129
134
|
spinner.succeed(`${style.appConfigValue(this.app.name)} version ${nextVersion} created.`);
|
|
@@ -576,7 +576,7 @@ export class RemoteAppCommand extends AppCommand {
|
|
|
576
576
|
}
|
|
577
577
|
storefrontFrontendUrl(storeId, storefront, branchId, preview = true) {
|
|
578
578
|
const storefrontSlug = storefront && preview
|
|
579
|
-
? `${storeId}--${storefront.id.toLowerCase()}`
|
|
579
|
+
? `${storeId}--${storefront.id.toLowerCase()}--preview`
|
|
580
580
|
: storeId;
|
|
581
581
|
return getStorefrontFrontendHost(storefrontSlug, branchId);
|
|
582
582
|
}
|
package/oclif.manifest.json
CHANGED