mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-11-06 20:15:48 +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))
|
||
|
}
|