From 14be87b48d4b3bc12619c77b948a7495e49683a1 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Thu, 6 Mar 2025 17:33:47 +0800 Subject: [PATCH] feat(ci): add debug logging for semantic release and correct NODE_PATH in Dockerfile Signed-off-by: zhenyus --- .../src/com/freeleaps/devops/SemanticReleasingExecutor.groovy | 1 + infra/ci-essentials/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy index f3111518..de4c5504 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy @@ -33,6 +33,7 @@ class SemanticReleasingExecutor { // steps.sh "npm install -g ${plugins.join(' ')}" steps.sh "git config --global --add safe.directory ${steps.env.workroot}" steps.env.GIT_LOCAL_BRANCH = "${branch}" + steps.sh "whereis semantic-release" steps.sh "semantic-release --debug" steps.log.info("SemanticReleasingExecutor", "Semantic release completed, read latest version from VERSION file") def released = steps.sh(script: 'test -f "VERSION"', returnStatus: true) == 0 diff --git a/infra/ci-essentials/Dockerfile b/infra/ci-essentials/Dockerfile index 8c8f8f53..24bd2f72 100644 --- a/infra/ci-essentials/Dockerfile +++ b/infra/ci-essentials/Dockerfile @@ -45,7 +45,7 @@ RUN mkdir -p "$NVM_DIR"; \ nvm install --lts --latest-npm # Add node and npm to path so the commands are available -ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules +ENV NODE_PATH=$NVM_DIR/versions/v$NODE_VERSION/lib/node_modules ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH # Install semantic release and conventional commits cli