mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-11-10 03:33:38 -05: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))
|
||
|
}
|