Create create-release.ps1
This commit is contained in:
parent
795e0d962a
commit
169e77c944
1 changed files with 12 additions and 0 deletions
12
create-release.ps1
Normal file
12
create-release.ps1
Normal 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
|
Loading…
Reference in a new issue