File tree 1 file changed +72
-0
lines changed
1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ trigger :
2
+ branches :
3
+ include :
4
+ - release-*
5
+
6
+ resources :
7
+ repositories :
8
+ - repository : 1esPipelines
9
+ type : git
10
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
11
+ ref : refs/tags/release
12
+
13
+ extends :
14
+ template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
15
+ parameters :
16
+ pool :
17
+ name : TypeScript-AzurePipelines-EO
18
+ image : 1ESPT-Mariner2.0
19
+ os : linux
20
+
21
+ sdl :
22
+ sourceAnalysisPool :
23
+ name : TypeScript-AzurePipelines-EO
24
+ image : 1ESPT-Windows2022
25
+ os : windows
26
+
27
+ stages :
28
+ - stage : buildStage
29
+ displayName : Build Stage
30
+ jobs :
31
+ - job : build
32
+ displayName : Build
33
+ steps :
34
+ - checkout : self
35
+ clean : true
36
+ fetchDepth : 1
37
+ fetchTags : false
38
+
39
+ - task : NodeTool@0
40
+ inputs :
41
+ versionSpec : 20.x
42
+ displayName : ' Install Node'
43
+
44
+ - script : |
45
+ npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'`
46
+ npm --version
47
+ displayName: 'Install packageManager from package.json'
48
+
49
+ - script : npm ci
50
+ displayName : ' npm ci'
51
+
52
+ - script : ' npm test'
53
+ displayName : ' npm test'
54
+
55
+ - script : |
56
+ npx hereby LKG
57
+ npx hereby clean
58
+ npm pack
59
+ displayName: 'LKG, clean, pack'
60
+
61
+ - task : CopyFiles@2
62
+ displayName : ' Copy Files to: $(Build.ArtifactStagingDirectory)'
63
+ inputs :
64
+ SourceFolder : ./
65
+ Contents : ' typescript-*.tgz'
66
+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
67
+
68
+ templateContext :
69
+ outputs :
70
+ - output : pipelineArtifact
71
+ targetPath : ' $(Build.ArtifactStagingDirectory)'
72
+ artifactName : tgz
You can’t perform that action at this time.
0 commit comments