-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
Copy pathpublish-stable.yml
89 lines (76 loc) · 2.97 KB
/
publish-stable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
###############################################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
###############################################################################################
name: $(Date:yyyyMMdd)$(Rev:.r)
trigger: none
pr: none
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
parameters:
- name: publishMonacoEditorCore
displayName: 🚀 Publish Monaco Editor Core
type: boolean
default: false
- name: publishMonacoEditor
displayName: 🚀 Publish Monaco Editor
type: boolean
default: false
- name: publishWebpackPlugin
displayName: 🚀 Publish Webpack Plugin
type: boolean
default: false
extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
cgIgnoreDirectories: $(Build.SourcesDirectory)/dependencies/vscode
npmPackages:
- name: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
- script: sudo apt install -y libkrb5-dev
displayName: Install libkrb5-dev
- script: npm ci
displayName: Install NPM dependencies
- script: yarn ts-node ./scripts/ci/monaco-editor-core-prepare stable
displayName: Setup, Build & Test monaco-editor-core
tag: latest
ghCreateTag: false
publishPackage: ${{ parameters.publishMonacoEditorCore }}
publishRequiresApproval: false
- name: monaco-editor
dependsOn: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/out/monaco-editor
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
- script: npm ci
displayName: Install NPM dependencies
- script: yarn ts-node ./scripts/ci/monaco-editor-prepare stable
displayName: Setup, Build & Test monaco-editor
tag: latest
publishPackage: ${{ parameters.publishMonacoEditor }}
publishRequiresApproval: false
- name: monaco-editor-webpack-plugin
dependsOn: monaco-editor
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
testPlatforms: []
packagePlatform: Windows
buildSteps:
- script: npm ci
displayName: Install NPM dependencies
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
- script: npm run compile
displayName: Build plugin
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
tag: latest
ghCreateTag: false
publishPackage: ${{ parameters.publishWebpackPlugin }}
publishRequiresApproval: false