1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

fixing packageVersion

This commit is contained in:
Joseph Flinn 2020-12-30 22:40:39 +00:00
parent db5c04e7de
commit ce31913e91

View File

@ -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: