File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
const utils = require ( './utils' ) ;
2
2
3
3
module . exports = function ( pluginConfig , config , cb ) {
4
- let branch ;
5
4
let defaultVerifyConditions ;
6
5
7
6
if ( config . env . TRAVIS ) {
8
7
defaultVerifyConditions = require ( '@semantic-release/condition-travis' ) ;
9
- branch = config . env . TRAVIS_BRANCH ;
10
8
} else if ( config . env . GITHUB_REF ) {
11
9
defaultVerifyConditions = require ( './condition-github-actions' ) ;
12
- branch = utils . ghActionsBranch ( config . env ) ;
13
10
} else {
14
11
defaultVerifyConditions = require ( '@krux/condition-jenkins' ) ;
15
- branch = config . env . GIT_LOCAL_BRANCH ;
16
12
}
13
+
14
+ const branch = config . env . TRAVIS_BRANCH || config . env . GIT_LOCAL_BRANCH || utils . ghActionsBranch ( config . env ) ;
17
15
18
16
// update semantic-release configuration to publish:
19
17
// - from this branch
You can’t perform that action at this time.
0 commit comments