MultiplePublish is npm script that allows publishing to multiple package registries.
Github, NPM
Install as devDependency
npm i --dev-save multiple-publish
// package.json
{
...
"multiplePublish": [
{
"type": "github",
"access": "public",
"scope": scope,
"registry": "https://npm.pkg.github.com/"
},
{
"type": "npm",
"access": "public"
}
]
}
{
"type": "github" or "npm"
"access": "public" or "restricted"
"scope": scope will be add before name "scope/name"
must start with @,
"registry": registry where package will be publish,
if you want publish to npm this field is redundant
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.