From 28abf136b7cc98a1eb18009fa1fdc4ec76c20ea5 Mon Sep 17 00:00:00 2001 From: Brandon Watson Date: Fri, 27 Jan 2023 16:17:58 -0600 Subject: [PATCH] Updating to use gitea for npm registry --- .drone.yml | 32 ++++++++++++++++---------------- package.json | 6 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index ad2c462..25957d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,14 +37,14 @@ steps: - master - name: publish pre - image: plugins/npm:1.0.0 - settings: - username: - from_secret: npm_username - password: - from_secret: npm_password - email: brandon@watsonlabs.net - registry: "http://10.44.1.6:4873/" + image: node + environment: + token: + from_secret: npm_token + commands: + - npm config set @watsonb8:registry https://gitea.watsonlabs.net/api/packages/watsonb8/npm/ + - npm config set -- '//gitea.watsonlabs.net/api/packages/watsonb8/npm/:_authToken' "$token" + - npm publish when: event: exclude: @@ -55,14 +55,14 @@ steps: - master - name: publish tagged version - image: plugins/npm:1.0.0 - settings: - username: - from_secret: npm_username - password: - from_secret: npm_password - email: brandon@watsonlabs.net - registry: "http://10.44.1.6:4873/" + image: node + environment: + token: + from_secret: npm_token + commands: + - npm config set @watsonb8:registry https://gitea.watsonlabs.net/api/packages/watsonb8/npm/ + - npm config set -- '//gitea.watsonlabs.net/api/packages/watsonb8/npm/:_authToken' "$token" + - npm publish when: event: - tag diff --git a/package.json b/package.json index daf3b95..9f5fcb5 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "@watsonb8/homebridge-harmony-control", - "version": "1.2.3", + "version": "1.2.4", "description": "Homebridge platform to control smart home equipment by room.", "main": "bin/index.js", "publishConfig": { - "registry": "http://10.44.1.6:4873/" + "registry": "https://gitea.watsonlabs.net" }, "scripts": { "build": "tsc --build", @@ -44,4 +44,4 @@ "request": "^2.88.0", "tsyringe": "^4.6.0" } -} +} \ No newline at end of file