mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-01 13:13:36 +01:00
9 lines
466 B
PowerShell
9 lines
466 B
PowerShell
$rootPath = $env:GITHUB_WORKSPACE;
|
|
$packagePath = "$rootPath\package.json";
|
|
$buildNumber = 100 + [int]$env:GITHUB_RUN_NUMBER;
|
|
Write-Output "Setting build number to $buildNumber";
|
|
Write-Output "::set-env name=BUILD_NUMBER::$buildNumber";
|
|
$package = Get-Content -Raw -Path $packagePath | ConvertFrom-Json;
|
|
$package.build | Add-Member -MemberType NoteProperty -Name buildVersion -Value "$buildNumber";
|
|
$package | ConvertTo-Json -Depth 32 | Set-Content $packagePath;
|