Skip to content

Commit 07011e5

Browse files
Update devops-integration.yml for Azure Pipelines
1 parent 1e235a2 commit 07011e5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

devops-integration.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pool:
1515
steps:
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

0 commit comments

Comments
 (0)