diff --git a/README.md b/README.md index c3e21fa9..00ccb2f7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Build Status](https://dev.azure.com/tgraf/tgraf/_apis/build/status/TimGraf.pipelines-javascript?branchName=master) + # Sample NodeJS application for Azure Pipelines docs For information on how to set up a pipeline for this repository, see [Create your first pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=azure-devops). diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..5bd39a6b --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,27 @@ +# 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 + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' + +- script: | + git checkout development + git checkout -b sync/branch + git push origin sync/branch + displayName: Git checkout develop sync branch