Fix version update script for composer.json (https://github.com/woocommerce/woocommerce-admin/pull/5165)
This commit is contained in:
parent
12ffd61133
commit
6ea8752e30
|
@ -25,8 +25,8 @@ function replace_version( $filename, $package_json ) {
|
|||
if ( stripos( $line, 'Stable tag: ' ) !== false ) {
|
||||
$line = "Stable tag: {$package_json->version}\n";
|
||||
}
|
||||
if ( stripos( $line, '"name": "woocommerce/woocommerce-admin",' ) !== false ) {
|
||||
$line .= "\t\"version\": \"{$package_json->version}\",\n";
|
||||
if ( stripos( $line, '"version":' ) !== false ) {
|
||||
$line = "\t\"version\": \"{$package_json->version}\",\n";
|
||||
}
|
||||
$lines[] = $line;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue