mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Initial azure-pipelines.yml for monaco-editor website
This commit is contained in:
parent
074a0cc08b
commit
2a0508fc89
3 changed files with 30 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
# Monaco Editor
|
# Monaco Editor
|
||||||
|
|
||||||
|
[](https://dev.azure.com/ms/monaco-editor/_build/latest?definitionId=3)
|
||||||
|
|
||||||
The Monaco Editor is the code editor which powers [VS Code](https://github.com/Microsoft/vscode), with the features better described [here](https://code.visualstudio.com/docs/editor/editingevolved).
|
The Monaco Editor is the code editor which powers [VS Code](https://github.com/Microsoft/vscode), with the features better described [here](https://code.visualstudio.com/docs/editor/editingevolved).
|
||||||
|
|
||||||
Please note that this repository contains no source code for the code editor, it only contains the scripts to package everything together and ship the `monaco-editor` npm module.
|
Please note that this repository contains no source code for the code editor, it only contains the scripts to package everything together and ship the `monaco-editor` npm module.
|
||||||
|
|
|
||||||
15
azure-pipelines.yml
Normal file
15
azure-pipelines.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Builds and publishes the Monaco Editor website
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'Ubuntu-16.04'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '8.x'
|
||||||
|
displayName: 'Install Node.js'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
npm install
|
||||||
|
npm run website
|
||||||
|
displayName: 'Build and publish website'
|
||||||
14
gulpfile.js
14
gulpfile.js
|
|
@ -656,7 +656,19 @@ gulp.task('website', ['clean-website'], function() {
|
||||||
cp.execSync('git init', {
|
cp.execSync('git init', {
|
||||||
cwd: path.join(__dirname, '../monaco-editor-website')
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
});
|
});
|
||||||
cp.execSync('git remote add origin https://github.com/Microsoft/monaco-editor.git', {
|
|
||||||
|
let remoteUrl = cp.execSync('git remote get-url origin')
|
||||||
|
let committerUserName = cp.execSync('git log --format=\'%an\' -1');
|
||||||
|
let committerEmail = cp.execSync('git log --format=\'%ae\' -1');
|
||||||
|
|
||||||
|
cp.execSync(`git config user.name ${committerUserName}`, {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
cp.execSync(`git config user.email ${committerEmail}`, {
|
||||||
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
|
});
|
||||||
|
|
||||||
|
cp.execSync(`git remote add origin ${remoteUrl}`, {
|
||||||
cwd: path.join(__dirname, '../monaco-editor-website')
|
cwd: path.join(__dirname, '../monaco-editor-website')
|
||||||
});
|
});
|
||||||
cp.execSync('git checkout -b gh-pages', {
|
cp.execSync('git checkout -b gh-pages', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue