2022-11-08 22:44:08 +08:00
|
|
|
###############################################################################################
|
|
|
|
# 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)
|
|
|
|
|
2022-11-14 23:37:01 +08:00
|
|
|
trigger: none
|
2022-11-08 22:44:08 +08:00
|
|
|
pr: none
|
|
|
|
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: templates
|
|
|
|
type: github
|
|
|
|
name: microsoft/vscode-engineering
|
|
|
|
ref: main
|
|
|
|
endpoint: Monaco
|
|
|
|
|
|
|
|
parameters:
|
2022-11-14 23:37:01 +08:00
|
|
|
- name: publishMonacoEditorCore
|
|
|
|
displayName: 🚀 Publish Monaco Editor Core
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
- name: publishMonacoEditor
|
2024-01-24 02:57:21 +08:00
|
|
|
displayName: 🚀 Publish Monaco Editor
|
2022-11-14 23:37:01 +08:00
|
|
|
type: boolean
|
|
|
|
default: false
|
2023-02-25 00:06:12 +08:00
|
|
|
- name: publishWebpackPlugin
|
|
|
|
displayName: 🚀 Publish Webpack Plugin
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-11-08 22:44:08 +08:00
|
|
|
|
|
|
|
extends:
|
|
|
|
template: azure-pipelines/npm-package/pipeline.yml@templates
|
|
|
|
parameters:
|
2024-05-24 06:01:29 +08:00
|
|
|
cgIgnoreDirectories: $(Build.SourcesDirectory)/dependencies/vscode
|
2022-11-08 22:44:08 +08:00
|
|
|
npmPackages:
|
2022-11-14 23:37:01 +08:00
|
|
|
- name: monaco-editor-core
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
|
|
|
|
testPlatforms: []
|
2024-03-19 00:53:49 +08:00
|
|
|
skipAPIScan: true # package build requires Linux
|
2022-11-14 23:37:01 +08:00
|
|
|
buildSteps:
|
2023-07-31 20:21:27 +08:00
|
|
|
- script: sudo apt install -y libkrb5-dev
|
|
|
|
displayName: Install libkrb5-dev
|
|
|
|
|
2022-11-14 23:37:01 +08:00
|
|
|
- script: npm ci
|
|
|
|
displayName: Install NPM dependencies
|
|
|
|
|
2023-02-09 23:13:46 +08:00
|
|
|
- script: yarn ts-node ./scripts/ci/monaco-editor-core-prepare stable
|
2022-11-14 23:37:01 +08:00
|
|
|
displayName: Setup, Build & Test monaco-editor-core
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
tag: latest
|
2023-03-14 20:09:02 +08:00
|
|
|
ghCreateTag: false
|
2022-11-14 23:37:01 +08:00
|
|
|
publishPackage: ${{ parameters.publishMonacoEditorCore }}
|
|
|
|
publishRequiresApproval: false
|
|
|
|
|
|
|
|
- name: monaco-editor
|
2023-02-23 00:39:35 +08:00
|
|
|
workingDirectory: $(Build.SourcesDirectory)/out/monaco-editor
|
2022-11-14 23:37:01 +08:00
|
|
|
testPlatforms: []
|
2024-03-19 00:53:49 +08:00
|
|
|
skipAPIScan: true # package build requires Linux
|
2022-11-08 22:44:08 +08:00
|
|
|
buildSteps:
|
2022-11-14 23:37:01 +08:00
|
|
|
- script: npm ci
|
|
|
|
displayName: Install NPM dependencies
|
|
|
|
|
2023-02-09 23:13:46 +08:00
|
|
|
- script: yarn ts-node ./scripts/ci/monaco-editor-prepare stable
|
2022-11-14 23:37:01 +08:00
|
|
|
displayName: Setup, Build & Test monaco-editor
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
tag: latest
|
2022-11-14 23:37:01 +08:00
|
|
|
publishPackage: ${{ parameters.publishMonacoEditor }}
|
|
|
|
publishRequiresApproval: false
|
2023-01-31 21:27:15 +08:00
|
|
|
|
2023-02-10 18:35:59 +08:00
|
|
|
- name: monaco-editor-webpack-plugin
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
|
|
|
|
testPlatforms: []
|
2024-03-19 00:53:49 +08:00
|
|
|
packagePlatform: Windows
|
2023-02-10 18:35:59 +08:00
|
|
|
buildSteps:
|
|
|
|
- script: npm ci
|
|
|
|
displayName: Install NPM dependencies
|
2023-07-08 03:14:29 +08:00
|
|
|
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
|
2023-02-10 18:35:59 +08:00
|
|
|
|
|
|
|
- script: npm run compile
|
|
|
|
displayName: Build plugin
|
2023-07-08 03:14:29 +08:00
|
|
|
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
|
2023-02-10 18:35:59 +08:00
|
|
|
|
|
|
|
tag: latest
|
2023-03-14 20:09:02 +08:00
|
|
|
ghCreateTag: false
|
2023-02-10 18:35:59 +08:00
|
|
|
publishPackage: ${{ parameters.publishWebpackPlugin }}
|
|
|
|
publishRequiresApproval: false
|