Sfoglia il codice sorgente

Fix/deploy versioning (#5350)

* Adjusted timing of version bump and hash syncing to correct version bumping error in deploy process.
* Added .map to files to ignore during sandbox sync
Jason Crist 3 anni fa
parent
commit
3f1d9d10cf
2 ha cambiato i file con 18 aggiunte e 2 eliminazioni
  1. 2 1
      .sandbox-ignore
  2. 16 1
      theme-utils.mjs

+ 2 - 1
.sandbox-ignore

@@ -21,4 +21,5 @@ deploy-dotorg.sh
 variations
 variations/**
 inc/headstart
-languages
+languages
+*.map

+ 16 - 1
theme-utils.mjs

@@ -109,11 +109,24 @@ async function pushButtonDeploy(repoType) {
 
 		let thingsWentBump = await versionBumpThemes();
 
+		if( thingsWentBump ){
+			prompt = await inquirer.prompt([{
+				type: 'confirm',
+				message: 'Are you good with the version bump changes? Make any manual adjustments now if necessary.',
+				name: "continue",
+				default: false
+			}]);
+
+			if(!prompt.continue){
+				console.log(`Aborted Automated Deploy Process at version bump changes.` );
+				return;
+			}
+		}
+
 		let changedThemes = await getChangedThemes(hash);
 
 		await pushChangesToSandbox();
 
-		await updateLastDeployedHash();
 
 		//push changes (from version bump)
 		if( thingsWentBump ){
@@ -135,6 +148,8 @@ async function pushButtonDeploy(repoType) {
 			`, true);
 		}
 
+		await updateLastDeployedHash();
+
 		if (repoType === 'git' ) {
 			diffUrl = await createGitPhabricatorDiff(hash);
 		}