title: AzureDevOps build pipeline takes too long(25-30 minutes)
body: <p>I am newbie to the YAMl files and ci/cd , recently i joined the project which  has a ci/cd pipeline, when we run pipeline build takes  approximately 25-30 minute. Application itself is not so huge, i would say it is mid size monolithic application. Bellow you can see the my YAML file</p>
  <pre><code>trigger:
  - development
  
  pool:
    vmImage: 'windows-latest'
  
  variables:
    solution: '**/*.sln'
    buildPlatform: 'Any CPU'
    buildConfiguration: 'Test'
  
  steps:
  - task: NuGetToolInstaller@1
  
  - task: NuGetCommand@2
    inputs:
      restoreSolution: '$(solution)'
  
  - task: Npm@1
    inputs:
      command: 'install'
      workingDir: 'frontend'
  
  - task: Npm@1
    inputs:
      command: 'custom'
      workingDir: 'frontend'
      customCommand: 'run build-test'
      
  - task: Npm@1
    inputs:
      command: 'install'
      workingDir: 'admin-frontend'
  
  - task: Npm@1
    inputs:
      command: 'custom'
      workingDir: 'admin-frontend'
      customCommand: 'run build-test'
  
  - task: VSBuild@1
    inputs:
      solution: '$(solution)'
      msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation=&quot;$(build.artifactStagingDirectory)\WebApp.zip&quot; /p:DeployIisAppPath=&quot;Default Web Site&quot;'
      platform: '$(buildPlatform)'
      configuration: '$(buildConfiguration)'
      msbuildArchitecture: 'x64'
      createLogFile: true
      logFileVerbosity: 'diagnostic'
  
  
  - task: PublishPipelineArtifact@1
    inputs:
      targetPath: '$(Pipeline.Workspace)'
      artifact: 'Web-Project-Test'
  </code></pre>
  <p>Also take a look the picture of the particular step times <a href="https://i.stack.imgur.com/IXe4m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IXe4m.png" alt="enter image description here" /></a></p>
  <p>As you can see the vast amount of time took npm and i guess there would be mechanism of caching, but i do not how to properly change my YAMl file, remove completely npm install step or no?</p>