From b0423037972054d5df6678be6ae589bf97555c79 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 20 Dec 2024 17:40:47 +0100 Subject: [PATCH] attempt to debug e2e test script --- admin/scripts/test-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/scripts/test-release.sh b/admin/scripts/test-release.sh index 622c524c95fa..be6ed79e04d3 100755 --- a/admin/scripts/test-release.sh +++ b/admin/scripts/test-release.sh @@ -6,6 +6,7 @@ # LICENSE file in the root directory of this source tree. set -euo pipefail +set -x CUSTOM_REGISTRY_URL="http://localhost:4873" NEW_VERSION="$(node -p "require('./packages/docusaurus/package.json').version")-NEW" @@ -52,7 +53,7 @@ git diff --name-only -- '*.json' | sed 's, ,\\&,g' | xargs git checkout -- cd .. # Build skeleton website with new version -npm_config_registry="$CUSTOM_REGISTRY_URL" npx create-docusaurus@"$NEW_VERSION" test-website classic --javascript $EXTRA_OPTS +npm_config_registry="$CUSTOM_REGISTRY_URL" npm_config_yes=true npx create-docusaurus@"$NEW_VERSION" test-website classic --javascript $EXTRA_OPTS # Stop Docker container if [[ -z "${KEEP_CONTAINER:-true}" ]] && ( $(docker container inspect "$CONTAINER_NAME" > /dev/null 2>&1) ); then