From 8345250e9fd56b97cb0720d1859fc01086a01b82 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sat, 3 Oct 2020 16:10:54 +0800 Subject: [PATCH] Add publishing Setup publishing for multiple repos and registries. --- README.md | 2 +- package.json | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c0329fb..eaa4a71 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This component is currently available in: * [Modal.sh JavaScript Package Registry](https://js.pack.modal.sh) * [npm](https://npmjs.com) -* [GitHub Package Registry](https://github.com/Temoto-kun/react-musical-keyboard/packages) for the [Github mirror](https://github.com/Temoto-kun/react-musical-keyboard) +* [GitHub Package Registry](https://npm.pkg.github.com) Once set up, install the package from the registry: diff --git a/package.json b/package.json index 40ff5ac..7013f9d 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,26 @@ "dist", "src" ], + "publishing": [ + { + "repository": "https://code.modal.sh/TheoryOfNekomata/react-musical-keyboard.git", + "publishConfig": { + "registry": "https://js.pack.modal.sh" + } + }, + { + "repository": "https://github.com/Temoto-kun/react-musical-keyboard", + "publishConfig": { + "registry": "https://npm.pkg.github.com" + } + }, + { + "repository": "https://code.modal.sh/TheoryOfNekomata/react-musical-keyboard.git", + "publishConfig": { + "registry": "https://registry.npmjs.com" + } + } + ], "engines": { "node": ">=10" },