mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-25 17:22:50 +00:00
chore(ci): Improve Netlify cache + Run `git backfill` in parallel (#11554)
This commit is contained in:
parent
963159b3c1
commit
05acc90c01
|
|
@ -14,18 +14,23 @@
|
||||||
NODE_VERSION = "24"
|
NODE_VERSION = "24"
|
||||||
NODE_OPTIONS = "--max_old_space_size=8192"
|
NODE_OPTIONS = "--max_old_space_size=8192"
|
||||||
|
|
||||||
|
|
||||||
|
# Note, we run build:packages and git backfill in parallel to speed up builds
|
||||||
|
# We run "git backfill" here to ensure the full Git history is available fast
|
||||||
|
# See https://github.com/facebook/docusaurus/pull/11553
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:production"
|
command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:production"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:branchDeploy"
|
command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:branchDeploy"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:deployPreview"
|
command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:deployPreview"
|
||||||
|
|
||||||
[[plugins]]
|
[[plugins]]
|
||||||
package = "netlify-plugin-cache"
|
package = "netlify-plugin-cache"
|
||||||
[plugins.inputs]
|
[plugins.inputs]
|
||||||
paths = [
|
paths = [
|
||||||
"node_modules/.cache/webpack",
|
"node_modules/.cache",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue