Debian Codegraph @

build/azure-pipelines/pipeline.yml

raw
1 ###############################################################################################
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for license information.
4 ###############################################################################################
5 name: $(Date:yyyyMMdd)$(Rev:.r)
6
7 trigger:
8 batch: true
9 branches:
10 include:
11 - main
12 pr: none
13
14 resources:
15 repositories:
16 - repository: templates
17 type: github
18 name: microsoft/vscode-engineering
19 ref: main
20 endpoint: Monaco
21
22 parameters:
23 - name: quality
24 displayName: Quality
25 type: string
26 default: latest
27 values:
28 - latest
29 - next
30 - name: publishTsconfigGen
31 displayName: 🚀 Publish tsconfig-gen
32 type: boolean
33 default: false
34 - name: publishTextDocument
35 displayName: 🚀 Publish textDocument
36 type: boolean
37 default: false
38 - name: publishTypes
39 displayName: 🚀 Publish types
40 type: boolean
41 default: false
42 - name: publishJsonrpc
43 displayName: 🚀 Publish jsonrpc
44 type: boolean
45 default: false
46 - name: publishProtocol
47 displayName: 🚀 Publish protocol
48 type: boolean
49 default: false
50 - name: publishServer
51 displayName: 🚀 Publish server
52 type: boolean
53 default: false
54 - name: publishClient
55 displayName: 🚀 Publish client
56 type: boolean
57 default: false
58
59 extends:
60 template: azure-pipelines/npm-package/pipeline.yml@templates
61 parameters:
62 npmPackages:
63 - name: tsconfigGen
64 generateNotice: true
65 testPlatforms:
66 - name: Linux
67 nodeVersions:
68 - 16.14.2
69 - name: MacOS
70 nodeVersions:
71 - 16.14.2
72 - name: Windows
73 nodeVersions:
74 - 16.14.2
75 testSteps:
76 - template: /build/azure-pipelines/templates/test-steps.yml@self
77 parameters:
78 package: tsconfig-gen
79 buildSteps:
80 - template: /build/azure-pipelines/templates/pack-steps.yml@self
81 parameters:
82 package: tsconfig-gen
83 ghTagPrefix: release/tsconfigGen/
84 tag: ${{ parameters.quality }}
85 preReleaseTag: next
86 preReleaseTagAddToLatest: true
87 publishPackage: ${{ parameters.publishTsconfigGen }}
88 workingDirectory: $(Build.SourcesDirectory)/tsconfig-gen
89
90 - name: textDocument
91 testPlatforms:
92 - name: Linux
93 nodeVersions:
94 - 16.14.2
95 - name: MacOS
96 nodeVersions:
97 - 16.14.2
98 - name: Windows
99 nodeVersions:
100 - 16.14.2
101 testSteps:
102 - template: /build/azure-pipelines/templates/test-steps.yml@self
103 parameters:
104 package: textDocument
105 buildSteps:
106 - template: /build/azure-pipelines/templates/pack-steps.yml@self
107 parameters:
108 package: textDocument
109 ghTagPrefix: release/textDocument/
110 tag: ${{ parameters.quality }}
111 preReleaseTag: next
112 preReleaseTagAddToLatest: true
113 publishPackage: ${{ parameters.publishTextDocument }}
114 workingDirectory: $(Build.SourcesDirectory)/textDocument
115
116 - name: types
117 testPlatforms:
118 - name: Linux
119 nodeVersions:
120 - 16.14.2
121 - name: MacOS
122 nodeVersions:
123 - 16.14.2
124 - name: Windows
125 nodeVersions:
126 - 16.14.2
127 testSteps:
128 - template: /build/azure-pipelines/templates/test-steps.yml@self
129 parameters:
130 package: types
131 buildSteps:
132 - template: /build/azure-pipelines/templates/pack-steps.yml@self
133 parameters:
134 package: types
135 ghTagPrefix: release/types/
136 tag: ${{ parameters.quality }}
137 preReleaseTag: next
138 preReleaseTagAddToLatest: true
139 publishPackage: ${{ parameters.publishTypes }}
140 workingDirectory: $(Build.SourcesDirectory)/types
141
142 - name: jsonrpc
143 testPlatforms:
144 - name: Linux
145 nodeVersions:
146 - 16.14.2
147 - name: MacOS
148 nodeVersions:
149 - 16.14.2
150 - name: Windows
151 nodeVersions:
152 - 16.14.2
153 testSteps:
154 - template: /build/azure-pipelines/templates/test-steps.yml@self
155 parameters:
156 package: jsonrpc
157 buildSteps:
158 - template: /build/azure-pipelines/templates/pack-steps.yml@self
159 parameters:
160 package: jsonrpc
161 ghTagPrefix: release/jsonrpc/
162 tag: ${{ parameters.quality }}
163 preReleaseTag: next
164 preReleaseTagAddToLatest: true
165 publishPackage: ${{ parameters.publishJsonrpc }}
166 workingDirectory: $(Build.SourcesDirectory)/jsonrpc
167
168 - name: protocol
169 testPlatforms:
170 - name: Linux
171 nodeVersions:
172 - 16.14.2
173 - name: MacOS
174 nodeVersions:
175 - 16.14.2
176 - name: Windows
177 nodeVersions:
178 - 16.14.2
179 testSteps:
180 - template: /build/azure-pipelines/templates/test-steps.yml@self
181 parameters:
182 package: protocol
183 buildSteps:
184 - template: /build/azure-pipelines/templates/pack-steps.yml@self
185 parameters:
186 package: protocol
187 ghTagPrefix: release/protocol/
188 tag: ${{ parameters.quality }}
189 preReleaseTag: next
190 preReleaseTagAddToLatest: true
191 publishPackage: ${{ parameters.publishProtocol }}
192 workingDirectory: $(Build.SourcesDirectory)/protocol
193
194 - name: server
195 testPlatforms:
196 - name: Linux
197 nodeVersions:
198 - 16.14.2
199 - name: MacOS
200 nodeVersions:
201 - 16.14.2
202 - name: Windows
203 nodeVersions:
204 - 16.14.2
205 testSteps:
206 - template: /build/azure-pipelines/templates/test-steps.yml@self
207 parameters:
208 package: server
209 buildSteps:
210 - template: /build/azure-pipelines/templates/pack-steps.yml@self
211 parameters:
212 package: server
213 ghTagPrefix: release/server/
214 tag: ${{ parameters.quality }}
215 preReleaseTag: next
216 preReleaseTagAddToLatest: true
217 publishPackage: ${{ parameters.publishServer }}
218 workingDirectory: $(Build.SourcesDirectory)/server
219
220 - name: client
221 testPlatforms:
222 - name: Linux
223 nodeVersions:
224 - 16.14.2
225 - name: MacOS
226 nodeVersions:
227 - 16.14.2
228 - name: Windows
229 nodeVersions:
230 - 16.14.2
231 testSteps:
232 - template: /build/azure-pipelines/templates/test-steps.yml@self
233 parameters:
234 package: client
235 buildSteps:
236 - template: /build/azure-pipelines/templates/pack-steps.yml@self
237 parameters:
238 package: client
239 ghTagPrefix: release/client/
240 tag: ${{ parameters.quality }}
241 preReleaseTag: next
242 preReleaseTagAddToLatest: true
243 publishPackage: ${{ parameters.publishClient }}
244 workingDirectory: $(Build.SourcesDirectory)/client