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 ae57fe6e1d
commit bfd1d7e2a3
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:
name: install yarn packages
command: cd ui && make
command: cd ui && make deps
- save_cache:
key: *YARN_CACHE_KEY

View File

@ -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