Skip to content

Instantly share code, notes, and snippets.

@ScriptBytes
Created January 26, 2020 21:01
Show Gist options
  • Save ScriptBytes/1d2e3ff948fb97defca461c574b6112f to your computer and use it in GitHub Desktop.
Save ScriptBytes/1d2e3ff948fb97defca461c574b6112f to your computer and use it in GitHub Desktop.
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
displayName: 'npm install and build'
- task: CopyFiles@2
inputs:
Contents: 'package*.json'
TargetFolder: 'dist'
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'dist'
customCommand: 'ci --production'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'dist'
includeRootFolder: true
archiveType: 'zip'
archiveFile: 'dist.zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'dist.zip'
ArtifactName: 'NestDemo'
publishLocation: 'Container'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment