Skip to content

Commit

Permalink
ci: automate release with semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
henrist committed May 13, 2020
1 parent 4338d06 commit 954d360
Show file tree
Hide file tree
Showing 3 changed files with 5,489 additions and 100 deletions.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,16 @@ buildConfig([
'''
}

// TODO: semantic-release
// We only run semantic-release on the release branches,
// as we do not want credentials to be exposed to the job
// on other branches or in PRs.
if (env.BRANCH_NAME ==~ /^(master|\d+\.(\d+|x)(\.x)?)$/) {
stage('Semantic release') {
withSemanticReleaseEnv {
sh 'npm run semantic-release'
}
}
}
}
}
}
Loading

0 comments on commit 954d360

Please sign in to comment.