How to add own Github plugin

Hi, how do I add a plugin from my own Github account?

As per the Cordova documentation I tried for example:

<plugin name="my-plugin" spec="https://github.com/xxxxxx/xxxxxx.git" />

But AppStudio throws an error = Plugin specs should be in the form ‘1.2.3’. They should not include pathnames or URLs.

The name of the plugin has to be in http://npmjs.com.

The spec is the version of the plugin. If you don’t specify it, the latest version is used.

So, you’ll end up with

<plugin name="my-plugin" />

Cordova, via VoltBuilder, will look up my-plugin in npmjs.com and get the information there about where to retrieve it. You’ll need to let us know the name of your plugin to we can add it to the Approved list.

Thank you for your help. The new plugin is working.