Skip to content

Commit c1d48ef

Browse files
Update build ignore rule in netlify.toml (#1538)
This PR updates the Netlify build ignore logic to ensure that documentation builds are triggered whenever package.json is modified. Currently, the netlify.toml only watches for changes within the current directory (.) and the ../website/ directory. Because of this, version bumps or release candidate promotions that only modify package.json do not trigger a fresh docs deployment. This results in the homepage displaying stale version numbers. By appending package.json to the monitored paths in the git diff command, Netlify will now correctly trigger a build when the version changes, even if no documentation content was modified. Signed-off-by: Juan Estrella <juan.estrella@finos.org>
1 parent 4c6e8d4 commit c1d48ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../website/"
2+
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../website/ package.json"

0 commit comments

Comments
 (0)