Writing dev version into package json file.
@@ -58,7 +58,17 @@ steps:
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
-
+ - task: Powershell@2
+ inputs:
+ filePath: $(Build.SourcesDirectory)/eng/common/scripts/Save-Package-Properties.ps1
+ arguments: >
+ -ServiceDirectory ${{parameters.ServiceDirectory}}
+ -OutDirectory $(Build.ArtifactStagingDirectory)/PackageInfo
+ -AddDevVersion
+ pwsh: true
+ workingDirectory: $(Pipeline.Workspace)
+ displayName: Update package properties with dev version
+ condition: and(succeeded(),eq(variables['SetDevVersion'],'true'))
- task: PythonScript@0
displayName: 'Generate Packages'
inputs:
