From 562d1c938b3f9d30830acde7e34f991224f4fba1 Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Fri, 11 Oct 2024 11:05:35 +0200 Subject: [PATCH] ci: Clean-up the doc-setup step --- melos.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/melos.yaml b/melos.yaml index 02b4e197788..e6581606874 100644 --- a/melos.yaml +++ b/melos.yaml @@ -55,13 +55,13 @@ scripts: doc-setup: steps: - - "echo Checking python version:" - - 'python3 --version && (python3 -c "import sys; sys.exit(0 if sys.version_info >= (3,8) else 2)" || (echo Error: Python 3.8+ is required && exit 1))' - - "echo Installing required python modules:" - - 'python3 -m pip install -r "$MELOS_ROOT_PATH/doc/_sphinx/requirements.txt"' - - "echo Installing dartdoc_json:" - - "dart pub global activate dartdoc_json" - - "echo Done." + - echo Checking python version: + - python3 --version && python3 -c "import sys; sys.exit(0 if sys.version_info >= (3,8) else 2)" || (echo "Error: Python 3.8+ is required" && exit 1) + - echo Installing required python modules: + - python3 -m pip install -r "$MELOS_ROOT_PATH/doc/_sphinx/requirements.txt" + - echo Installing dartdoc_json: + - dart pub global activate dartdoc_json + - echo Done. description: Prepares the environment for documentation development. doc-build: