mirror of
https://github.com/actions/setup-node.git
synced 2025-07-27 00:48:24 +02:00
9 lines
229 B
JavaScript
9 lines
229 B
JavaScript
module.exports = registerPlugin;
|
|
|
|
const factory = require("./factory");
|
|
|
|
function registerPlugin(plugins, pluginFunction) {
|
|
return factory(
|
|
plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
|
|
);
|
|
}
|