Skip to content

Commit

Permalink
Chore(ci): Skip Nx cache on Netlify builds
Browse files Browse the repository at this point in the history
  * caused build fails by rejecting the local cache during Netlify
    builds
  * @see: https://answers.netlify.com/t/
    support-guide-nx-monorepo-site-does-not-reflect-changes-after-build/73657
  * @see: https://nx.dev/recipes/troubleshooting/unknown-local-cache
  • Loading branch information
literat committed Oct 23, 2023
1 parent aac8f1e commit 28571cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
publish = ".storybook/build"

# Default build command.
command = "yarn lerna run --scope @lmc-eu/spirit-icons build && 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"
Expand Down
2 changes: 1 addition & 1 deletion packages/web-react/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
publish = "build"

# Default build command.
command = "cd ../../ && yarn lerna run --scope @lmc-eu/spirit-icons build && yarn lerna run --scope @lmc-eu/spirit-web-react examples:build"
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"
Expand Down

0 comments on commit 28571cc

Please sign in to comment.