wishthis/create-release.ps1

13 lines
426 B
PowerShell
Raw Normal View History

2022-01-21 15:36:21 +00:00
Write-Host "second string"
$Version = Read-Host "What version would you like to release?"
$VersionRegEx = "define\('VERSION', '([\d\.]+)'\);"
$IndexPHP = (Get-Content -Path .\index.php -Raw) -Replace $VersionRegEx, "`define('VERSION', '$Version');" | Set-Content -Path .\index.php
2022-01-21 15:38:51 +00:00
IEX 'composer update --no-dev --with-all-dependencies --ignore-platform-req=php'
IEX 'npm update --only=production --no-optional'
2022-01-21 15:36:21 +00:00
Read-Host