trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
  inputs:
    versionSpec: '10.x'
  displayName: 'Install Node.js'

- script: |
    npm install
    npm build
  displayName: 'npm install and build'

- task: Npm@1
  inputs:
    command: 'publish'
    customRegistry: 'useFeed'
    publishEndpoint: 'npmjs.org'
