feat(pipeline): add installation of semantic-release requirements in SemanticReleasingExecutor

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-07 18:34:00 +08:00
parent 0b54a77d9e
commit 80dd57433c

View File

@ -25,6 +25,8 @@ class SemanticReleasingExecutor {
steps.dir(steps.env.workroot) {
steps.writeFile file: 'releaserc.json', text: steps.libraryResource(config)
steps.log.info("SemanticReleasingExecutor", "Installing semantic-release requirements...")
steps.sh "apt-get -y update && apt-get install -y --no-install-recommends git apt-transport-https ca-certificates curl wget gnupg"
steps.log.info("SemanticReleasingExecutor", "Installing semantic-release plugins...")
steps.sh "npm install -g ${plugins.join(' ')}"
steps.sh "semantic-release"