2019-09-04 20:20:54 +03:00
|
|
|
# Node.js
|
|
|
|
# Build a general Node.js project with npm.
|
|
|
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
|
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
|
|
|
|
|
|
|
pr: none
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- packages/documentation
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu-16.04'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
git config user.email "kchau@microsoft.com"
|
|
|
|
git config user.name "kchau@microsoft.com"
|
|
|
|
git remote set-url origin https://$(github.user):$(github.pat)@github.com/microsoft/just.git
|
|
|
|
displayName: 'git config'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn
|
|
|
|
displayName: 'yarn'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn build:docs
|
|
|
|
displayName: 'build docs'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
git add docs
|
|
|
|
git commit -m "update docs"
|
2019-09-04 20:34:39 +03:00
|
|
|
git fetch origin
|
|
|
|
git merge origin/master
|
|
|
|
git push -u origin HEAD:master
|
2019-09-04 20:20:54 +03:00
|
|
|
displayName: 'publish docs'
|