Create create-release.ps1

This commit is contained in:
Jay Trees 2022-01-21 16:36:21 +01:00
parent 795e0d962a
commit 169e77c944

12
create-release.ps1 Normal file
View file

@ -0,0 +1,12 @@
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
IEX 'composer install --no-dev'
IEX 'npm install --only=production --no-optional'
Read-Host