Fix version numbers for Varia child themes
@@ -1,6 +1,6 @@
{
"name": "alves",
- "version": "1.4.1",
+ "version": "1.4.3",
"description": "Alves",
"bugs": {
"url": "https://github.com/Automattic/themes/issues"
"name": "balasana",
- "version": "1.2.2",
+ "version": "1.2.4",
"description": "Balasana",
"name": "barnsbury",
- "version": "1.2.1",
+ "version": "1.2.3",
"description": "Barnsbury",
"name": "brompton",
- "version": "1.3.1",
+ "version": "1.3.3",
"description": "Brompton",
"name": "coutoire",
"description": "Coutoire",
"name": "dalston",
"description": "Dalston",
"name": "exford",
- "version": "1.4.2",
+ "version": "1.4.4",
"description": "Exford",
"name": "hever",
"description": "Hever",
"name": "leven",
"description": "Leven",
"name": "mayland",
"description": "mayland",
"name": "maywood",
- "version": "1.4.3",
+ "version": "1.4.5",
"description": "Maywood",
"name": "morden",
- "version": "1.5.1",
+ "version": "1.5.3",
"description": "Morden",
"name": "redhill",
"description": "redhill",
"name": "rivington",
"description": "Rivington",
"name": "rockfield",
"description": "Rockfield",
"name": "shawburn",
- "version": "1.3.2",
+ "version": "1.3.4",
"description": "Shawburn",
"name": "stow",
"description": "Stow",
"name": "stratford",
"description": "Stratford",
@@ -6,6 +6,7 @@ for child in ${ChildThemes[@]}; do
cd '../'${child}
echo 'Rebulding '${child}
perl -pi -e 's/Version: ((\d+\.)*)(\d+)(.*)$/"Version: ".$1.($3+1).$4/ge' sass/style-child-theme.scss
+ perl -pi -e 's/\"version\": \"((\d+\.)*)(\d+)\"(.*)$/"\"version\": \"".$1.($3+1)."\"".$4/ge' package.json
npm install
npm run build
done