Debian Codegraph @

tests/pipeline_scripts/node_windows_install_build.yml

raw
1 # --------------------------------------------------------------------------------------------
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for license information.
4 # --------------------------------------------------------------------------------------------
5 # Starter template for Azure functions build -- node on windows
6 trigger:
7 - master
8 pool:
9 vmImage: 'VS2017-Win2016'
10 steps:
11 - script: |
12 npm install
13 npm run build --if-present
14 npm prune --production
15 - task: ArchiveFiles@2
16 displayName: 'Archive files'
17 inputs:
18 rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
19 includeRootFolder: false
20 archiveFile: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
21 - task: PublishBuildArtifacts@1
22 inputs:
23 PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
24 name: 'drop'