monaco-editor/.azure-pipelines/publish-nightly.yml

90 lines
2.8 KiB
YAML
Raw Normal View History

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)
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
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
2023-06-05 23:40:14 +08:00
parameters:
- name: publishMonacoEditorCore
displayName: 🚀 Publish Monaco Editor Core
type: boolean
default: true
- name: publishMonacoEditor
2024-01-24 02:57:21 +08:00
displayName: 🚀 Publish Monaco Editor
type: boolean
default: true
2023-06-05 23:40:14 +08:00
- name: vscodeRef
2023-07-31 22:00:49 +08:00
displayName: The VS Code commit id.
2023-06-05 23:40:14 +08:00
type: string
2023-07-31 22:00:49 +08:00
default: 'main'
2023-06-05 23:40:14 +08:00
- name: prereleaseVersion
2023-07-31 22:00:49 +08:00
displayName: The prerelease version.
2023-06-05 23:40:14 +08:00
type: string
2023-07-31 22:00:49 +08:00
default: 'dev-${today}'
2023-06-05 23:40:14 +08:00
2022-11-08 22:44:08 +08:00
extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
cgIgnoreDirectories: $(Build.SourcesDirectory)/dependencies/vscode
2022-11-08 22:44:08 +08:00
npmPackages:
- name: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
2023-07-31 20:21:27 +08:00
- script: sudo apt install -y libkrb5-dev
displayName: Install libkrb5-dev
2023-07-27 18:44:55 +08:00
- script: npm ci
displayName: Install NPM dependencies
- script: yarn ts-node ./scripts/ci/monaco-editor-core-prepare nightly
2023-06-05 23:40:14 +08:00
env:
VSCODE_REF: ${{ parameters.vscodeRef }}
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
retryCountOnTaskFailure: 5
displayName: Setup, Build & Test monaco-editor-core
2022-11-16 20:39:25 +08:00
tag: next
ghCreateTag: false
publishPackage: ${{ parameters.publishMonacoEditorCore }}
publishRequiresApproval: false
- name: monaco-editor
workingDirectory: $(Build.SourcesDirectory)/out/monaco-editor
testPlatforms: []
2024-03-20 01:37:12 +08:00
skipAPIScan: true # package build requires Linux
2022-11-08 22:44:08 +08:00
buildSteps:
- script: npm ci
displayName: Install NPM dependencies
- script: yarn ts-node ./scripts/ci/monaco-editor-prepare nightly
2023-06-05 23:40:14 +08:00
env:
VSCODE_REF: ${{ parameters.vscodeRef }}
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
retryCountOnTaskFailure: 5
displayName: Setup, Build & Test monaco-editor
2022-11-16 20:39:25 +08:00
tag: next
publishPackage: ${{ parameters.publishMonacoEditor }}
publishRequiresApproval: false