diff --git a/.circleci/config.yml b/.circleci/config.yml index 199ce432c..02f3ad639 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -602,7 +602,7 @@ jobs: - run: name: install yarn packages - command: cd ui && make + command: cd ui && make deps - save_cache: key: *YARN_CACHE_KEY diff --git a/ui/GNUmakefile b/ui/GNUmakefile index 91158150f..290bda9ae 100644 --- a/ui/GNUmakefile +++ b/ui/GNUmakefile @@ -15,11 +15,17 @@ dist-docker: dist clean: rm -rf ./dist -# Build a distribution of the UI using the minimal amount of dependencies +# Build a distribution of the UI dist: clean cd packages/consul-ui && \ $(MAKE) +# Install deps for the UI only +deps: clean + cd packages/consul-ui && \ + $(MAKE) deps + + # Build a distribution of the UI for Vercel previews. # The distribution must be copied into the ui/ subfolder # in order to mirror the go binary