fix(pipeline): specify configuration file for semantic-release execution in SemanticReleasingExecutor

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-08 10:56:49 +08:00
parent efa16c9614
commit d5d31f7d26

View File

@ -32,7 +32,7 @@ class SemanticReleasingExecutor {
steps.log.info("SemanticReleasingExecutor", "Installing semantic-release plugins...") steps.log.info("SemanticReleasingExecutor", "Installing semantic-release plugins...")
steps.sh "npm install -g ${plugins.join(' ')}" steps.sh "npm install -g ${plugins.join(' ')}"
steps.sh "git config --global --add safe.directory ${steps.env.workroot}" steps.sh "git config --global --add safe.directory ${steps.env.workroot}"
steps.sh "semantic-release" steps.sh "semantic-release -e releaserc.json"
steps.log.info("SemanticReleasingExecutor", "Semantic release completed, read latest version from VERSION file") steps.log.info("SemanticReleasingExecutor", "Semantic release completed, read latest version from VERSION file")
steps.env.LATEST_VERSION = steps.readFile('VERSION').trim() steps.env.LATEST_VERSION = steps.readFile('VERSION').trim()
} }