From f94e196f62fb6d580c8a47fb7522ecff60020a4e Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sat, 3 Oct 2020 16:16:10 +0800 Subject: [PATCH] Add publishing Set up publishing for multiple branches with different repos and registries. --- package.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7013f9d..953e4dc 100644 --- a/package.json +++ b/package.json @@ -8,26 +8,29 @@ "dist", "src" ], - "publishing": [ - { + "publishing": { + "master": { + "branch": "master", "repository": "https://code.modal.sh/TheoryOfNekomata/react-musical-keyboard.git", "publishConfig": { "registry": "https://js.pack.modal.sh" } }, - { + "github": { + "branch": "github", "repository": "https://github.com/Temoto-kun/react-musical-keyboard", "publishConfig": { "registry": "https://npm.pkg.github.com" } }, - { + "npm": { + "branch": "npm", "repository": "https://code.modal.sh/TheoryOfNekomata/react-musical-keyboard.git", "publishConfig": { "registry": "https://registry.npmjs.com" } } - ], + }, "engines": { "node": ">=10" },