message: Work for the "thin" release pipeline
diff: @@ -28,17 +28,27 @@ steps:
  persistCredentials: true
  clean: true
  -# Delete integration tests atrifact. Ban ReleaseAll until tests will be ok.
  -- task: DeleteFiles@1
  - inputs:
  - SourceFolder: '$(System.ArtifactStagingDirectory)'
  - Contents: 'IntegrationTestsIsOk.txt'
  -
  - task: NodeTool@0
  inputs:
  - versionSpec: '12.x'
  + versionSpec: '14.x'
  displayName: 'Install Node.js'
  +#For standart version
  +- powershell: |
  + npm run release
  + displayName: 'npm run release standart'
  +
  +# #For specific version
  +# - powershell: |
  +# $version = "1.8.16"
  +# npm run release -- --release-as $version
  +# displayName: 'npm run release specific version'
  +
  +- powershell: |
  + $version = (git describe --tags).replace("v", "")
  + Write-Host "##vso[task.setvariable variable=SurveyJSVersion;]$version"
  + displayName: 'npm run release and setup env var SurveyJSVersion'
  +
  - script: |
  cd $(Build.SourcesDirectory)/survey-library
  npm install
  @@ -90,6 +100,20 @@ steps:
  SourceFolder: '$(Build.SourcesDirectory)/survey-library/packages'
  TargetFolder: '$(Build.ArtifactStagingDirectory)/packages'
  +# create build artifact file 'version.txt'
  +- powershell: |
  + New-Item "version.txt"
  + Set-Content version.txt $(SurveyJSVersion)
  + Get-Content version.txt
  + displayName: 'create version file as build artifact'
  +
  +#trigger next build via the artifact file 'version.txt'
  +- task: CopyFiles@2
  + inputs:
  + contents: 'version.txt'
  + targetFolder: $(Build.ArtifactStagingDirectory)
  + displayName: 'copy version file to Build.ArtifactStagingDirectory'
  +
  #publishLocation: 'Container' - store the artifact in Azure Pipelines
  - task: PublishBuildArtifacts@1
  inputs:
  