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
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
schedules:
|
|
|
|
- cron: '0 7 * * *'
|
|
|
|
displayName: Daily release
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
2022-11-21 19:31:18 +08:00
|
|
|
always: true
|
2022-11-16 20:39:25 +08:00
|
|
|
|
2022-11-08 22:44:08 +08:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: templates
|
|
|
|
type: github
|
|
|
|
name: microsoft/vscode-engineering
|
|
|
|
ref: main
|
|
|
|
endpoint: Monaco
|
|
|
|
|
|
|
|
extends:
|
|
|
|
template: azure-pipelines/npm-package/pipeline.yml@templates
|
|
|
|
parameters:
|
|
|
|
npmPackages:
|
2022-11-14 23:37:01 +08:00
|
|
|
- name: monaco-editor-core
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
|
|
|
|
testPlatforms: []
|
|
|
|
buildSteps:
|
|
|
|
- script: npm ci
|
|
|
|
displayName: Install NPM dependencies
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
- script: yarn ts-node ./scripts/ci/prepare-monaco-editor-core nightly
|
2022-11-14 23:37:01 +08:00
|
|
|
displayName: Setup, Build & Test monaco-editor-core
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
tag: next
|
|
|
|
publishPackage: true
|
2022-11-14 23:37:01 +08:00
|
|
|
publishRequiresApproval: false
|
|
|
|
|
|
|
|
- name: monaco-editor
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/release
|
|
|
|
testPlatforms: []
|
2022-11-08 22:44:08 +08:00
|
|
|
buildSteps:
|
2022-11-14 23:37:01 +08:00
|
|
|
- script: npm ci
|
|
|
|
displayName: Install NPM dependencies
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
- script: yarn ts-node ./scripts/ci/prepare-monaco-editor nightly
|
2022-11-14 23:37:01 +08:00
|
|
|
displayName: Setup, Build & Test monaco-editor
|
|
|
|
|
2022-11-16 20:39:25 +08:00
|
|
|
tag: next
|
|
|
|
publishPackage: true
|
2022-11-14 23:37:01 +08:00
|
|
|
publishRequiresApproval: false
|
2023-01-31 21:27:15 +08:00
|
|
|
|
|
|
|
postPublishSteps:
|
|
|
|
- checkout: self
|
|
|
|
persistCredentials: true
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
set -e
|
|
|
|
|
|
|
|
git config user.email "vscode@microsoft.com"
|
|
|
|
git config user.name "VSCode"
|
|
|
|
|
|
|
|
git tag -a v$(SetPackageSpec.PACKAGE_VERSION) -m v$(SetPackageSpec.PACKAGE_VERSION)
|
|
|
|
git push origin v$(SetPackageSpec.PACKAGE_VERSION)
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)
|