mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Tweak build
This commit is contained in:
parent
3664cb4445
commit
12717ff7d5
3 changed files with 20 additions and 2 deletions
|
|
@ -12,4 +12,8 @@ steps:
|
||||||
- script: |
|
- script: |
|
||||||
npm install
|
npm install
|
||||||
npm run website
|
npm run website
|
||||||
displayName: 'Build and publish website'
|
displayName: 'Build website'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
./build/publish-website.sh
|
||||||
|
displayName: 'Publish website'
|
||||||
13
build/publish-website.sh
Executable file
13
build/publish-website.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
REMOTE_URL="$(git remote get-url origin)"
|
||||||
|
COMMITTER_USER_NAME="$(git log --format='%an' -1)"
|
||||||
|
COMMITTER_EMAIL="$(git log --format='%ae' -1)"
|
||||||
|
|
||||||
|
cd ../monaco-editor-website
|
||||||
|
git config user.name "${COMMITTER_USER_NAME}"
|
||||||
|
git config user.email "${COMMITTER_EMAIL}"
|
||||||
|
git remote add origin "${REMOTE_URL}"
|
||||||
|
git checkout -b gh-pages
|
||||||
|
git add .
|
||||||
|
git commit -m "Publish website"
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"simpleserver": "gulp simpleserver",
|
"simpleserver": "gulp simpleserver",
|
||||||
"release": "gulp release",
|
"release": "gulp release",
|
||||||
"website": "gulp website"
|
"website": "gulp website",
|
||||||
|
"build-website": "gulp build-website"
|
||||||
},
|
},
|
||||||
"typings": "./esm/vs/editor/editor.api.d.ts",
|
"typings": "./esm/vs/editor/editor.api.d.ts",
|
||||||
"module": "./esm/vs/editor/editor.main.js",
|
"module": "./esm/vs/editor/editor.main.js",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue