From 43b4d94d2bda871dfe81cb053753f90a4b58dfb0 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 14 Dec 2023 10:41:27 +0000 Subject: [PATCH] Restore `npm ci` step for storybook build (#16247) * Restore npm ci step for storybook build * Add lezer-latex:generate --------- Co-authored-by: Gernot Schulz GitOrigin-RevId: 9ccd67d061fe098c3c8856c2489dd4bcda221d6a --- services/web/Makefile | 3 ++- services/web/cloudbuild-storybook.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/services/web/Makefile b/services/web/Makefile index 0b3836d245..ed826ec736 100644 --- a/services/web/Makefile +++ b/services/web/Makefile @@ -553,8 +553,9 @@ tar: COMPOSE_PROJECT_NAME=tar_$(BUILD_DIR_NAME) $(DOCKER_COMPOSE) down -v -t 0 build_storybook: + npm run lezer-latex:generate npm run build-storybook - if [[ -n "$(BRANCH_NAME)" ]]; then \ + if [ -n "$(BRANCH_NAME)" ]; then \ echo "Renaming storybook-static -> $(BRANCH_NAME)."; \ d=$$(dirname "$(BRANCH_NAME)"); \ mkdir -p "storybook-output/$$d"; \ diff --git a/services/web/cloudbuild-storybook.yaml b/services/web/cloudbuild-storybook.yaml index 513fef95c7..3b0fe800d9 100644 --- a/services/web/cloudbuild-storybook.yaml +++ b/services/web/cloudbuild-storybook.yaml @@ -1,4 +1,11 @@ steps: + - id: npm_ci + name: "node:18.18.2" + entrypoint: /bin/bash + args: + - '-c' + - 'bin/npm_install_subset . libraries/* services/web' + - id: build-storybook name: 'node:18.18.2' env: