mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-30 08:10:34 +01:00
BUILD_NUMBER for safari extension
This commit is contained in:
parent
72beaa7ed8
commit
d90674227e
1
.github/scripts/macos/increment-version.ps1
vendored
1
.github/scripts/macos/increment-version.ps1
vendored
@ -2,6 +2,7 @@
|
|||||||
$packagePath = "$rootPath\package.json";
|
$packagePath = "$rootPath\package.json";
|
||||||
$buildNumber = 100 + [int]$env:GITHUB_RUN_NUMBER;
|
$buildNumber = 100 + [int]$env:GITHUB_RUN_NUMBER;
|
||||||
Write-Output "Setting build number to $buildNumber";
|
Write-Output "Setting build number to $buildNumber";
|
||||||
|
Write-Output "::set-env name=BUILD_NUMBER::$buildNumber";
|
||||||
$package = Get-Content -Raw -Path $packagePath | ConvertFrom-Json;
|
$package = Get-Content -Raw -Path $packagePath | ConvertFrom-Json;
|
||||||
$package.build | Add-Member -MemberType NoteProperty -Name buildVersion -Value "$buildNumber";
|
$package.build | Add-Member -MemberType NoteProperty -Name buildVersion -Value "$buildNumber";
|
||||||
$package | ConvertTo-Json -Depth 32 | Set-Content $packagePath;
|
$package | ConvertTo-Json -Depth 32 | Set-Content $packagePath;
|
||||||
|
Loading…
Reference in New Issue
Block a user