Pārlūkot izejas kodu

Deploy script: Improve npm versioning step (#7694)

* Remove package-lock step from individual theme updates

* Remove silent from npm version bump
Sarah Norris 1 gadu atpakaļ
vecāks
revīzija
744505db10
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  1. 1 4
      theme-utils.mjs

+ 1 - 4
theme-utils.mjs

@@ -775,15 +775,12 @@ async function versionBumpTheme(theme, addChanges) {
 		const isPackageJson = file === `${theme}/package.json`;
 		if (isPackageJson) {
 			// update theme/package.json and package-lock.json
-			await executeCommand(`npm version ${currentVersion.replace('-wpcom', '')} --workspace=${theme} --silent`);
+			await executeCommand(`npm version ${currentVersion.replace('-wpcom', '')} --workspace=${theme}`);
 		} else {
 			await executeCommand(`perl -pi -e 's/Version: (.*)$/"Version: '${currentVersion}'"/ge' ${file}`);
 		}
 		if (addChanges) {
 			await executeCommand(`git add ${file}`);
-			if (isPackageJson) {
-				await executeCommand(`git add package-lock.json`);
-			}
 		}
 	}
 }