File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,14 @@ trigger:
1010pr :
1111 branches :
1212 include :
13- - ' *'
13+ - ' *'
1414
1515pool :
1616 vmImage : ' ubuntu-latest'
1717
18+ variables :
19+ DOCS_NEXT_CACHE_FOLDER : $(Build.SourcesDirectory)/docs/.next/cache
20+
1821steps :
1922 - task : NodeTool@0
2023 inputs :
@@ -54,6 +57,15 @@ steps:
5457 artifactName : ' canaries'
5558 targetPath : ' material-ui-core.tgz'
5659
60+ - task : Cache@2
61+ inputs :
62+ key : ' yarn | "$(Agent.OS)" | yarn.lock'
63+ restoreKeys : |
64+ yarn | "$(Agent.OS)"
65+ yarn
66+ path : $(DOCS_NEXT_CACHE_FOLDER)
67+ displayName : Cache nextjs build
68+
5769 - script : |
5870 set -o pipefail
5971 mkdir -p scripts/sizeSnapshot/build
Original file line number Diff line number Diff line change 55 "author" : " Material-UI Team" ,
66 "license" : " MIT" ,
77 "scripts" : {
8- "build" : " rimraf .next && cross-env NODE_ENV=production next build" ,
8+ "build" : " cross-env NODE_ENV=production next build" ,
9+ "build:clean" : " rimraf .next && yarn build" ,
910 "build-sw" : " node ./scripts/buildServiceWorker.js" ,
1011 "dev" : " rimraf ./node_modules/.cache/babel-loader && next dev" ,
1112 "deploy" : " git push material-ui-docs master:latest" ,
You can’t perform that action at this time.
0 commit comments