mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
fix set-env refs
This commit is contained in:
2
.github/scripts/load-version.ps1
vendored
2
.github/scripts/load-version.ps1
vendored
@@ -2,4 +2,4 @@
|
||||
$packageVersion = (Get-Content -Raw -Path $rootPath\src\package.json | ConvertFrom-Json).version;
|
||||
|
||||
Write-Output "Setting package version to $packageVersion";
|
||||
Write-Output "::set-env name=PACKAGE_VERSION::$packageVersion";
|
||||
Write-Output "PACKAGE_VERSION=$packageVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append;
|
||||
|
||||
2
.github/scripts/macos/increment-version.ps1
vendored
2
.github/scripts/macos/increment-version.ps1
vendored
@@ -2,7 +2,7 @@
|
||||
$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";
|
||||
Write-Output "BUILD_NUMBER=$buildNumber" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append;
|
||||
$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;
|
||||
|
||||
Reference in New Issue
Block a user