diff --git a/packages/online-playground/deploy-check.sh b/packages/online-playground/deploy-check.sh new file mode 100755 index 0000000000..2982827472 --- /dev/null +++ b/packages/online-playground/deploy-check.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# check for netlify to skip deploy +# needed because we cannot use && in netlify.toml + +# exit 0 will skip the build while exit 1 will build + +git diff --quiet 'HEAD^' HEAD . && git diff --quiet 'HEAD^' HEAD ../pinia diff --git a/packages/online-playground/netlify.toml b/packages/online-playground/netlify.toml index 7566e86755..4d6c06f5c8 100644 --- a/packages/online-playground/netlify.toml +++ b/packages/online-playground/netlify.toml @@ -1,3 +1,4 @@ [build] command = "pnpm run build" +ignore = "./deploy-check.sh" publish = "dist"