Skip to content

Commit

Permalink
feat: drop support for Travis CI and Jenkins
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Only compatible with GH Actions
  • Loading branch information
tsvetomir committed Jun 2, 2022
1 parent 935980e commit d8df6d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
},
"scripts": {
"lint": "./node_modules/.bin/eslint *.js bin/*.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "npm run lint"
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"keywords": [
"semantic-release",
Expand All @@ -24,7 +23,6 @@
"dist-tag"
],
"dependencies": {
"@krux/condition-jenkins": "^1.0.1",
"semantic-release": "^6.3.6"
},
"engines": {
Expand Down
15 changes: 3 additions & 12 deletions verifyConditions.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
const utils = require('./utils');

module.exports = function (pluginConfig, config, cb) {
let defaultVerifyConditions;

if (config.env.TRAVIS) {
defaultVerifyConditions = require('@semantic-release/condition-travis');
} else if (config.env.GITHUB_REF) {
defaultVerifyConditions = require('./condition-github-actions');
} else {
defaultVerifyConditions = require('@krux/condition-jenkins');
}

const branch = config.env.TRAVIS_BRANCH || config.env.GIT_LOCAL_BRANCH || utils.ghActionsBranch(config.env);
let verifyConditions = require('./condition-github-actions');
const branch = utils.ghActionsBranch(config.env);

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

// run default build checks with the new configuration
return defaultVerifyConditions(pluginConfig, config, cb);
return verifyConditions(pluginConfig, config, cb);
};

0 comments on commit d8df6d4

Please sign in to comment.