From 44551390e3ae3fff27416f48a2587db956ca55e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20B=C3=ADlek?= <honza.bilek4@gmail.com>
Date: Fri, 15 Jul 2022 07:31:39 +0200
Subject: [PATCH] Use registry configured in options

---
 src/npm.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/npm.ts b/src/npm.ts
index 4f42d18..5278dea 100644
--- a/src/npm.ts
+++ b/src/npm.ts
@@ -95,6 +95,10 @@ export const npm = {
         command.push("--dry-run");
       }
 
+      if(options.registry){
+        command.push("--registry", options.registry);
+      }
+
       // Run "npm publish" in the package.json directory
       let cwd = resolve(dirname(options.package));