From 8650d8e9d57ad3569cd0eb17c013bdf5d3babdca Mon Sep 17 00:00:00 2001 From: BijanEisapour Date: Mon, 2 May 2022 12:51:02 +0430 Subject: [PATCH] [ADD] azure pipelines --- azure-pipelines.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..713cd5b --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,39 @@ +# Node.js with Angular +# Build a Node.js project that uses Angular. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: + +- task: RestoreAndSaveCache@1 + inputs: + keyfile: '**/package-lock.json, !**/node_modules/**/package-lock.json' + targetfolder: '**/node_modules, !**/node_modules/**/node_modules' + vstsFeed: 'e8e4ec96-6001-41da-86cb-0ab6d463d3f4' + +- task: Npm@1 + inputs: + command: 'install' + + +- task: Npm@1 + inputs: + command: 'custom' + customCommand: 'run build' + +- task: CopyFiles@2 + inputs: + SourceFolder: 'dist/CodeStar' + Contents: '**' + TargetFolder: '$(Build.ArtifactStagingDirectory)' + +- task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Build.ArtifactStagingDirectory)' + publishLocation: 'pipeline'