Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build/ci/templates/globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ variables:
VSC_PYTHON_FORCE_LOGGING: true # Enable this to turn on console output for the logger
VSC_PYTHON_LOG_FILE: '$(Build.ArtifactStagingDirectory)/pvsc.log'
CI_BRANCH_NAME: ${Build.SourceBranchName}
npm_config_cache: $(Pipeline.Workspace)/.npm

10 changes: 10 additions & 0 deletions build/ci/templates/steps/initialization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ steps:
# displayName: 'Uninstall canvas and install build from source (only for Linux)'
# condition: and(succeeded(), eq(variables['Agent.Os'], 'Linux'))

# See the help here on how to cache npm
# https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops#nodejsnpm
- task: CacheBeta@0
inputs:
key: npm | $(Agent.OS) | package-lock.json
path: $(npm_config_cache)
restoreKeys: |
npm | $(Agent.OS)
displayName: Cache npm

- task: Npm@1
displayName: "npm ci"
inputs:
Expand Down