update version bump script to consider level 3 (#6254)

This commit is contained in:
Madhu Dollu 2022-07-19 02:47:55 +05:30 committed by GitHub
parent efa03bbf01
commit f9eb831925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -728,7 +728,7 @@ async function versionBumpTheme(theme, addChanges) {
let styleCss = fs.readFileSync(`${theme}/style.css`, 'utf8');
let currentVersion = getThemeMetadata(styleCss, 'Version');
let filesToUpdate = await executeCommand(`find ${theme} -name package.json -o -name style.scss -o -name style-child-theme.scss -maxdepth 2`);
let filesToUpdate = await executeCommand(`find ${theme} -name package.json -o -name style.scss -o -name style-child-theme.scss -maxdepth 3`);
filesToUpdate = filesToUpdate.split('\n').filter(item => item != '');
for (let file of filesToUpdate) {