Skip to content

Commit

Permalink
[ADD] azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
BijanEisapour committed May 2, 2022
1 parent 6ef362b commit 8650d8e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 8650d8e

Please sign in to comment.