1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-10 14:33:31 +01:00
bitwarden-desktop/.github/scripts/load-version.ps1
2020-11-03 13:29:00 -05:00

6 lines
304 B
PowerShell

$rootPath = $env:GITHUB_WORKSPACE;
$packageVersion = (Get-Content -Raw -Path $rootPath\src\package.json | ConvertFrom-Json).version;
Write-Output "Setting package version to $packageVersion";
Write-Output "PACKAGE_VERSION=$packageVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append;