fixing packageVersion
This commit is contained in:
parent
db5c04e7de
commit
ce31913e91
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue