semantic-prerelease/condition-github-actions.js

16 строки
464 B
JavaScript
Исходник Постоянная ссылка Обычный вид История

2019-10-22 16:08:42 +03:00
var SRError = require('@semantic-release/error')
module.exports = function (pluginConfig, config, cb) {
var env = config.env
2022-06-02 13:17:46 +03:00
if (!Object.hasOwnProperty.call(env, 'GITHUB_ACTION')) {
2019-10-22 16:08:42 +03:00
return cb(new SRError(
'semantic-release didnt run on Github Action and therefore a new version wont be published.\n' +
'You can customize this behavior using "verifyConditions" plugins: git.io/sr-plugins',
'ENOGHACTIONS'
))
}
cb(null)
}