mirror of
https://github.com/actions/setup-node.git
synced 2024-11-15 12:18:04 +00:00
8 lines
219 B
JavaScript
8 lines
219 B
JavaScript
module.exports = registerPlugin
|
|
|
|
const factory = require('./factory')
|
|
|
|
function registerPlugin (plugins, pluginFunction) {
|
|
return factory(plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction))
|
|
}
|