File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1515steps :
1616 - task : NodeTool@0
1717 inputs :
18- versionSpec : " 12 .x"
18+ versionSpec : " 14 .x"
1919 displayName : " Install Node.js"
2020
2121 - script : |
@@ -39,6 +39,25 @@ steps:
3939 Contents : " **"
4040 TargetFolder : " $(Build.Repository.LocalPath)/node_modules/survey-core"
4141 OverWrite : true
42+
43+ # npm run release with version
44+ - task : CopyFiles@2
45+ inputs :
46+ SourceFolder : ' $(System.ArtifactsDirectory)/SurveyJSLibraryBuild/'
47+ Contents : ' version.txt'
48+ TargetFolder : ' $(Build.SourcesDirectory)/'
49+ OverWrite : true
50+ displayName : ' Copy Build Artifact - SurveyJSVersion File'
51+
52+ - powershell : |
53+ $version = Get-Content $(Build.SourcesDirectory)/version.txt
54+ Write-Host "##vso[task.setvariable variable=SurveyJSVersion;]$version"
55+ displayName: 'setup SurveyJSVersion variable from SurveyJSVersionFile'
56+
57+ - powershell : |
58+ npm run release -- --release-as $(SurveyJSVersion)
59+ displayName: 'npm run release specific version'
60+ # ####################################################
4261
4362 - script : |
4463 npm run build
You can’t perform that action at this time.
0 commit comments