Skip to content

Commit d8df6d4

Browse files
committed
feat: drop support for Travis CI and Jenkins
BREAKING CHANGE: Only compatible with GH Actions
1 parent 935980e commit d8df6d4

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
},
1515
"scripts": {
1616
"lint": "./node_modules/.bin/eslint *.js bin/*.js",
17-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
18-
"test": "npm run lint"
17+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1918
},
2019
"keywords": [
2120
"semantic-release",
@@ -24,7 +23,6 @@
2423
"dist-tag"
2524
],
2625
"dependencies": {
27-
"@krux/condition-jenkins": "^1.0.1",
2826
"semantic-release": "^6.3.6"
2927
},
3028
"engines": {

verifyConditions.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
const utils = require('./utils');
22

33
module.exports = function (pluginConfig, config, cb) {
4-
let defaultVerifyConditions;
5-
6-
if (config.env.TRAVIS) {
7-
defaultVerifyConditions = require('@semantic-release/condition-travis');
8-
} else if (config.env.GITHUB_REF) {
9-
defaultVerifyConditions = require('./condition-github-actions');
10-
} else {
11-
defaultVerifyConditions = require('@krux/condition-jenkins');
12-
}
13-
14-
const branch = config.env.TRAVIS_BRANCH || config.env.GIT_LOCAL_BRANCH || utils.ghActionsBranch(config.env);
4+
let verifyConditions = require('./condition-github-actions');
5+
const branch = utils.ghActionsBranch(config.env);
156

167
// update semantic-release configuration to publish:
178
// - from this branch
@@ -25,5 +16,5 @@ module.exports = function (pluginConfig, config, cb) {
2516
}
2617

2718
// run default build checks with the new configuration
28-
return defaultVerifyConditions(pluginConfig, config, cb);
19+
return verifyConditions(pluginConfig, config, cb);
2920
};

0 commit comments

Comments
 (0)