2019-08-29 18:36:37 +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:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu-16.04'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
|
2019-09-18 20:03:09 +03:00
|
|
|
- script: |
|
|
|
|
git config user.email "jagore@microsoft.com"
|
|
|
|
git config user.name "jagore@microsoft.com"
|
|
|
|
git remote set-url origin https://$(github.user):$(github.pat)@github.com/microsoft/flamegrill.git
|
|
|
|
displayName: 'git config'
|
2019-08-29 18:36:37 +03:00
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn
|
|
|
|
displayName: 'yarn'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn build
|
|
|
|
displayName: 'build'
|
|
|
|
|
2019-09-10 03:37:53 +03:00
|
|
|
- script: |
|
2019-09-10 03:42:40 +03:00
|
|
|
yarn test
|
|
|
|
displayName: 'test'
|
2019-08-29 18:36:37 +03:00
|
|
|
|
2019-09-18 20:03:09 +03:00
|
|
|
- script: |
|
2019-09-18 20:20:39 +03:00
|
|
|
yarn publish:beachball -n $(npm.authtoken) -y
|
2019-09-18 20:03:09 +03:00
|
|
|
displayName: 'beachball publish'
|