diff --git a/.az-pipelines/windows-build-sign.yml b/.az-pipelines/windows-build-sign.yml index 7e468f58f2..52d2fd8779 100644 --- a/.az-pipelines/windows-build-sign.yml +++ b/.az-pipelines/windows-build-sign.yml @@ -17,6 +17,16 @@ steps: versionSpec: '10.x' displayName: 'Install Node.js' +- script: | + $packageVersion = (Get-Content -Raw -Path $(System.DefaultWorkingDirectory)\src\package.json | ConvertFrom-Json).version; + echo "##vso[task.setvariable variable=PACKAGE_VERSION]$packageVersion" + displayName: 'Setting packageVersion' + +- script: | + echo "package version: ${{ packageVersion }}" + echo "package version: $(packageVersion)" + exit 1 + - script: npm install displayName: 'npm install' @@ -40,8 +50,8 @@ steps: - task: PublishPipelineArtifact@1 inputs: - pathToPublish: '$(System.DefaultWorkingDirectory)/dist/Bitwarden-Portable-$(GIT_COMMIT_TO_BUILD).exe' - artifactName: Bitwarden-Portable-$(GIT_COMMIT_TO_BUILD).exe + pathToPublish: '$(System.DefaultWorkingDirectory)/dist/Bitwarden-Portable-${{ PACKAGE_VERSION }}.exe' + artifactName: Bitwarden-Portable-$(PACKAGE_VERSION).exe # - task: PublishPipelineArtifact@1 # inputs: