mirror of
https://github.com/actions/setup-node.git
synced 2026-05-02 02:10:41 +03:00
new toolkit and scoped registries
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
module.exports = registerPlugin
|
||||
|
||||
const factory = require('./factory')
|
||||
|
||||
function registerPlugin (plugins, pluginFunction) {
|
||||
return factory(plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction))
|
||||
}
|
||||
Reference in New Issue
Block a user