Skip to content

Commit

Permalink
attempt to fix npm cache problem (separate task)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jul 28, 2023
1 parent d2e1b44 commit 5b3bc2f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,38 @@ pool:

jobs:

- job: NPMCache

steps:
- checkout: self
- checkout: EmptyRepo
persistCredentials: true
clean: true

- task: NodeTool@0
inputs:
versionSpec: "14.x"
displayName: "Install Node.js"

- task: CopyFiles@2
inputs:
SourceFolder: "$(Build.SourcesDirectory)/survey-library/"
Contents: "package.json"
TargetFolder: "$(Build.SourcesDirectory)/Temp/"
OverWrite: true
displayName: "Copy package.json for cache key"

- task: Cache@2
inputs:
key: 'npm-cache-library | $(Build.SourcesDirectory)/Temp/package.json'
path: $(Build.SourcesDirectory)/survey-library/node_modules
cacheHitVar: NPM_CACHE_RESTORED
displayName: Cache NPM


- job: CoreAngularJquery
dependsOn:
- NPMCache

steps:
- checkout: self
Expand Down Expand Up @@ -138,6 +169,9 @@ jobs:


- job: Knockout
dependsOn:
- NPMCache

steps:
- checkout: self
- checkout: EmptyRepo
Expand Down Expand Up @@ -244,6 +278,8 @@ jobs:


- job: React
dependsOn:
- NPMCache

steps:
- checkout: self
Expand Down Expand Up @@ -345,6 +381,8 @@ jobs:


- job: Vue
dependsOn:
- NPMCache

steps:
- checkout: self
Expand Down Expand Up @@ -445,6 +483,9 @@ jobs:
publishLocation: "Container"

- job: Angular
dependsOn:
- NPMCache

steps:
- checkout: self
- checkout: EmptyRepo
Expand Down Expand Up @@ -560,6 +601,9 @@ jobs:
publishLocation: "Container"

- job: Vue3
dependsOn:
- NPMCache

steps:
- checkout: self
- checkout: EmptyRepo
Expand Down

0 comments on commit 5b3bc2f

Please sign in to comment.