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 05:16:48 +08:00
parent 70b3b46083
commit b1fa86b12d

View File

@ -27,7 +27,7 @@ class SemanticReleasingExecutor {
steps.withCredentials([steps.usernamePassword(credentialsId: credentialsId, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { steps.withCredentials([steps.usernamePassword(credentialsId: credentialsId, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
steps.log.warn("SemanticReleasingExecutor", "Setting up git credentials, execute workaround for semantic-release integrate with Azure DevOps") steps.log.warn("SemanticReleasingExecutor", "Setting up git credentials, execute workaround for semantic-release integrate with Azure DevOps")
// TODO: This should be supported by semantic-release itself, not a workaround here // TODO: This should be supported by semantic-release itself, not a workaround here
steps.sh 'git config --global http.extraheader "AUTHORIZATION: Bearer ${steps.env.GIT_PASSWORD}"' steps.sh "git config --global http.extraheader \"AUTHORIZATION: Bearer ${steps.env.GIT_PASSWORD}\""
steps.writeFile file: '.releaserc.json', text: steps.libraryResource(config) steps.writeFile file: '.releaserc.json', text: steps.libraryResource(config)
steps.log.info("SemanticReleasingExecutor", "Installing semantic-release requirements...") 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.sh "apt-get -y update && apt-get install -y --no-install-recommends git apt-transport-https ca-certificates curl wget gnupg"