Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
bfba6e47d1 | |||
28abf136b7 | |||
ed652b2f76 |
36
.drone.yml
36
.drone.yml
@ -37,14 +37,14 @@ steps:
|
||||
- master
|
||||
|
||||
- name: publish pre
|
||||
image: plugins/npm
|
||||
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
|
||||
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
|
||||
@ -84,7 +84,7 @@ steps:
|
||||
from_secret: ssh_key
|
||||
port: 22
|
||||
script:
|
||||
- rm -r /home/$SSH_USER/.npm-global/lib/node_modules/@watsonb8/homebridge-harmony-control
|
||||
- rm -r /home/$SSH_USER/.npm-global/lib/node_modules/@watsonb8/homebridge-harmony-control || true
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
@ -101,7 +101,7 @@ steps:
|
||||
from_secret: ssh_key
|
||||
port: 22
|
||||
script:
|
||||
- npm install -g @watsonb8/homebridge-harmony-control --registry http://10.44.1.6:4873
|
||||
- npm install -g @watsonb8/homebridge-harmony-control
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@watsonb8/homebridge-harmony-control",
|
||||
"version": "1.2.3",
|
||||
"version": "1.3.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user