diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..c8e980c --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://pkgs.dev.azure.com/madhavd1/_packaging/madhavd1/npm/registry/ +always-auth=true \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..2b4a64b --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,30 @@ +# 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' +- task: npmAuthenticate@0 + inputs: + workingFile: '.npmrc' + +- script: | + npm install + npm run compile + displayName: 'npm install and build' + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container'