fix(semantic-release): add additional branch filter for rules

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-18 04:21:53 +08:00
parent 6403a1eeac
commit 6c79018093

View File

@ -33,7 +33,8 @@ class SemanticReleasingExecutor {
steps.sh "npm install -g ${plugins.join(' ')}"
steps.sh "git config --global --add safe.directory ${steps.env.workroot}"
steps.sh "git branch --show-current"
steps.sh "semantic-release"
steps.sh "ls -la ."
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
if (released) {