Created
January 26, 2020 21:01
-
-
Save ScriptBytes/1d2e3ff948fb97defca461c574b6112f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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