Using gitea npm registry
Some checks failed
continuous-integration/drone Build is failing

WIP

WIP
This commit is contained in:
Brandon Watson 2023-01-19 13:33:03 -06:00
parent e1ac0a3a5b
commit 9cf8ef3c60
2 changed files with 123 additions and 119 deletions

View File

@ -28,14 +28,16 @@ steps:
- master - master
- name: publish pre - name: publish pre
image: plugins/npm:1.0.0 image: plugins/npm:latest
settings: settings:
username: username:
from_secret: npm_username from_secret: npm_username
password: password:
from_secret: npm_password from_secret: npm_password
token:
from_secret: npm_token
email: b.watson@watsonlabs.net email: b.watson@watsonlabs.net
registry: "http://10.44.1.6:4873/" registry: "https://gitea.watsonlabs.net"
when: when:
event: event:
exclude: exclude:
@ -46,12 +48,14 @@ steps:
- master - master
- name: publish tagged version - name: publish tagged version
image: plugins/npm:1.0.0 image: plugins/npm:latest
settings: settings:
username: username:
from_secret: npm_username from_secret: npm_username
password: password:
from_secret: npm_password from_secret: npm_password
token:
from_secret: npm_token
email: b.watson@watsonlabs.net email: b.watson@watsonlabs.net
registry: "http://10.44.1.6:4873/" registry: "http://10.44.1.6:4873/"
when: when:
@ -92,7 +96,7 @@ steps:
from_secret: ssh_key from_secret: ssh_key
port: 22 port: 22
script: script:
- npm install -g @watsonb8/homebridge-flux --registry http://10.44.1.6:4873 - npm install -g @watsonb8/homebridge-flux --registry https://gitea.watsonlabs.net
when: when:
event: event:
- tag - tag

View File

@ -1,10 +1,10 @@
{ {
"name": "@watsonb8/homebridge-flux", "name": "@watsonb8/homebridge-flux",
"version": "1.1.3", "version": "1.1.4",
"description": "", "description": "",
"main": "bin/index.js", "main": "bin/index.js",
"publishConfig": { "publishConfig": {
"registry": "http://10.44.1.6:4873/" "registry": "https://gitea.watsonlabs.net"
}, },
"files": [ "files": [
"bin", "bin",