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 didn’t run on Github Action and therefore a new version won’t be published.\n' +
|
|
|
|
|
'You can customize this behavior using "verifyConditions" plugins: git.io/sr-plugins',
|
|
|
|
|
'ENOGHACTIONS'
|
|
|
|
|
))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cb(null)
|
|
|
|
|
}
|