feat: drop support for Travis CI and Jenkins
BREAKING CHANGE: Only compatible with GH Actions
This commit is contained in:
Родитель
935980eedf
Коммит
d8df6d4876
|
@ -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",
|
||||
|
@ -24,7 +23,6 @@
|
|||
"dist-tag"
|
||||
],
|
||||
"dependencies": {
|
||||
"@krux/condition-jenkins": "^1.0.1",
|
||||
"semantic-release": "^6.3.6"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -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
|
||||
|
@ -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);
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче