steps:
  - template: ../steps/download-dist.yml
  - template: ../steps/install-nodejs.yml
  - bash: mv $(npm pack ./dist --silent) $(Build.ArtifactStagingDirectory)
    displayName: "Pack dist"
  - task: PublishPipelineArtifact@0
    inputs:
      artifactName: "dist.tgz"
      targetPath: $(Build.ArtifactStagingDirectory)
    displayName: "Upload dist.tgz"
