ci: Only install UI dependencies for CI frontend-cache (#11313)

This commit is contained in:
John Cowen 2021-10-14 15:14:26 +01:00 committed by GitHub
parent 79b53ab23a
commit a1a0ce1dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -602,7 +602,7 @@ jobs:
- run: - run:
name: install yarn packages name: install yarn packages
command: cd ui && make command: cd ui && make deps
- save_cache: - save_cache:
key: *YARN_CACHE_KEY key: *YARN_CACHE_KEY

View File

@ -15,11 +15,17 @@ dist-docker: dist
clean: clean:
rm -rf ./dist rm -rf ./dist
# Build a distribution of the UI using the minimal amount of dependencies # Build a distribution of the UI
dist: clean dist: clean
cd packages/consul-ui && \ cd packages/consul-ui && \
$(MAKE) $(MAKE)
# Install deps for the UI only
deps: clean
cd packages/consul-ui && \
$(MAKE) deps
# Build a distribution of the UI for Vercel previews. # Build a distribution of the UI for Vercel previews.
# The distribution must be copied into the ui/ subfolder # The distribution must be copied into the ui/ subfolder
# in order to mirror the go binary # in order to mirror the go binary