From 4768e2496357840fcba870f3e2e4d7a5bc066c60 Mon Sep 17 00:00:00 2001 From: literat Date: Mon, 23 Oct 2023 21:23:10 +0200 Subject: [PATCH] Style(ci): Use multiline strings for Netlify config commands --- netlify.toml | 12 ++++++++++-- packages/web-react/netlify.toml | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index 1e24a03f2a..011e328a26 100644 --- a/netlify.toml +++ b/netlify.toml @@ -12,11 +12,19 @@ publish = ".storybook/build" # Default build command. - command = "yarn lerna run --scope @lmc-eu/spirit-icons build --skip-nx-cache && yarn storybook:build" + command = """\ + yarn lerna run --scope @lmc-eu/spirit-icons build --skip-nx-cache \ + && yarn storybook:build \ + """ # Ignore builds on Netlify ignore = "node ./scripts/ignoreNetlifyBuilds.js" [context.deploy-preview] # Deploy preview only if there are changes in some directories - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./packages/web-react/src/ .storybook/ ./packages/web-react/docs/stories/" + ignore = """\ + git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF \ + ./packages/web-react/src/ \ + .storybook/ \ + ./packages/web-react/docs/stories/ \ + """ diff --git a/packages/web-react/netlify.toml b/packages/web-react/netlify.toml index 5292597db6..6dc49e63fb 100644 --- a/packages/web-react/netlify.toml +++ b/packages/web-react/netlify.toml @@ -16,7 +16,11 @@ publish = "build" # Default build command. - command = "cd ../../ && yarn lerna run --scope @lmc-eu/spirit-icons build --skip-nx-cache && yarn lerna run --scope @lmc-eu/spirit-web-react examples:build --skip-nx-cache" + command = """\ + cd ../../ \ + && yarn lerna run --scope @lmc-eu/spirit-icons build --skip-nx-cache \ + && yarn lerna run --scope @lmc-eu/spirit-web-react examples:build --skip-nx-cache \ + """ # Ignore builds on Netlify ignore = "node ../../scripts/ignoreNetlifyBuilds.js"