feat(ci): add debug logging for semantic release and correct NODE_PATH in Dockerfile
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
40f33eef9a
commit
14be87b48d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user