@@ -12,32 +12,50 @@ trigger: none
12
12
pr : none
13
13
14
14
resources :
15
+ repositories :
16
+ - repository : 1es
17
+ type : git
18
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
19
+ ref : refs/tags/release
15
20
pipelines :
16
21
- pipeline : DurableJSCI
17
22
project : internal
18
23
source : durable-js.official
19
24
branch : v3.x
20
25
21
- jobs :
22
- - job : Release
23
- pool :
24
- name : " 1ES-Hosted-AzFunc"
25
- demands :
26
- - ImageOverride -equals MMSUbuntu20.04TLS
27
- steps :
28
- - task : NodeTool@0
29
- displayName : " Install Node.js"
30
- inputs :
31
- versionSpec : 14.x
32
- - download : DurableJSCI
33
- - script : mv *.tgz package.tgz
34
- displayName : " Rename tgz file" # because the publish command below requires an exact path
35
- workingDirectory : " $(Pipeline.Workspace)/DurableJSCI/drop"
36
- - task : Npm@1
37
- displayName : " npm publish"
38
- inputs :
39
- command : custom
40
- workingDir : " $(Pipeline.Workspace)/DurableJSCI/drop"
41
- verbose : true
42
- customCommand : " publish package.tgz --tag ${{ parameters.NpmPublishTag }} --dry-run ${{ lower(parameters.NpmPublishDryRun) }}"
43
- customEndpoint : " NPM Durable Functions JS Publish"
26
+ extends :
27
+ template : v1/1ES.Official.PipelineTemplate.yml@1es
28
+ parameters :
29
+ sdl :
30
+ sourceAnalysisPool :
31
+ name : 1es-pool-azfunc
32
+ image : 1es-windows-2022
33
+ os : windows
34
+ codeql :
35
+ runSourceLanguagesInSourceAnalysis : true
36
+
37
+ stages :
38
+ - stage : Release
39
+ pool :
40
+ name : 1es-pool-azfunc
41
+ image : 1es-ubuntu-22.04
42
+ os : linux
43
+ jobs :
44
+ - job : Release
45
+ steps :
46
+ - task : NodeTool@0
47
+ displayName : " Install Node.js"
48
+ inputs :
49
+ versionSpec : 14.x
50
+ - download : DurableJSCI
51
+ - script : mv *.tgz package.tgz
52
+ displayName : " Rename tgz file" # because the publish command below requires an exact path
53
+ workingDirectory : " $(Pipeline.Workspace)/DurableJSCI/drop"
54
+ - task : Npm@1
55
+ displayName : " npm publish"
56
+ inputs :
57
+ command : custom
58
+ workingDir : " $(Pipeline.Workspace)/DurableJSCI/drop"
59
+ verbose : true
60
+ customCommand : " publish package.tgz --tag ${{ parameters.NpmPublishTag }} --dry-run ${{ lower(parameters.NpmPublishDryRun) }}"
61
+ customEndpoint : " NPM Durable Functions JS Publish"
0 commit comments