From cd59ee430051ee313559d3fd45418c659b9146d1 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 24 Jun 2022 15:31:04 +0800 Subject: [PATCH] chore: prevent unnecessary netlify builds (#8755) --- netlify.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 5ff3c0d6323342..f618d808000f61 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,4 +3,5 @@ NPM_FLAGS = "--version" # prevent Netlify npm install [build] publish = "docs/.vitepress/dist" - command = "npx pnpm i --store=node_modules/.pnpm-store --frozen-lockfile && npm run ci-docs" \ No newline at end of file + command = "npx pnpm i --store=node_modules/.pnpm-store --frozen-lockfile && npm run ci-docs" + ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml" \ No newline at end of file