mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +01:00
Migrates github publish action to azure pipeline.
This commit is contained in:
parent
c49fcab8f0
commit
1dc513ee38
11 changed files with 242 additions and 311 deletions
|
|
@ -4,6 +4,7 @@
|
|||
###############################################################################################
|
||||
name: $(Date:yyyyMMdd)$(Rev:.r)
|
||||
|
||||
trigger: none
|
||||
pr: none
|
||||
|
||||
resources:
|
||||
|
|
@ -13,11 +14,6 @@ resources:
|
|||
name: microsoft/vscode-engineering
|
||||
ref: main
|
||||
endpoint: Monaco
|
||||
- repository: vscode
|
||||
type: github
|
||||
name: microsoft/vscode
|
||||
ref: main
|
||||
endpoint: Monaco
|
||||
|
||||
parameters:
|
||||
- name: quality
|
||||
|
|
@ -27,29 +23,43 @@ parameters:
|
|||
values:
|
||||
- latest
|
||||
- next
|
||||
- name: publishMonacoEditorCore
|
||||
displayName: 🚀 Publish Monaco Editor Core
|
||||
type: boolean
|
||||
default: false
|
||||
- name: publishMonacoEditor
|
||||
displayName: 🚀 Publish Editor Core
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
extends:
|
||||
template: azure-pipelines/npm-package/pipeline.yml@templates
|
||||
parameters:
|
||||
npmPackages:
|
||||
- name: foobar
|
||||
testPlatforms:
|
||||
- name: Linux
|
||||
nodeVersions:
|
||||
- 16.14.2
|
||||
- name: MacOS
|
||||
nodeVersions:
|
||||
- 16.14.2
|
||||
- name: Windows
|
||||
nodeVersions:
|
||||
- 16.14.2
|
||||
testSteps:
|
||||
- checkout: vscode
|
||||
- script: dir $(Build.SourcesDirectory)
|
||||
- name: monaco-editor-core
|
||||
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
|
||||
testPlatforms: []
|
||||
buildSteps:
|
||||
- script: dir $(Build.SourcesDirectory)
|
||||
- script: npm ci
|
||||
displayName: Install NPM dependencies
|
||||
|
||||
- script: yarn ts-node ./scripts/ci/prepare-monaco-editor-core-stable
|
||||
displayName: Setup, Build & Test monaco-editor-core
|
||||
|
||||
tag: ${{ parameters.quality }}
|
||||
publishPackage: false
|
||||
postPublishSteps:
|
||||
- script: dir .
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
publishPackage: ${{ parameters.publishMonacoEditorCore }}
|
||||
publishRequiresApproval: false
|
||||
|
||||
- name: monaco-editor
|
||||
workingDirectory: $(Build.SourcesDirectory)/release
|
||||
testPlatforms: []
|
||||
buildSteps:
|
||||
- script: npm ci
|
||||
displayName: Install NPM dependencies
|
||||
|
||||
- script: yarn ts-node ./scripts/ci/prepare-monaco-editor-stable
|
||||
displayName: Setup, Build & Test monaco-editor
|
||||
|
||||
tag: ${{ parameters.quality }}
|
||||
publishPackage: ${{ parameters.publishMonacoEditor }}
|
||||
publishRequiresApproval: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue