diff --git a/.drone.yml b/.drone.yml index 6f77b97..d465ae5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,6 +18,29 @@ steps: - npm install - npm run build + - name: version + image: node + commands: + - export version=`node -p "require('./package.json').version"` + - npm version $version --preid=pre --commit-hooks=false --git-tag-version=false --allow-same-version=true + when: + event: + exclude: + - tag + + - name: publish pre + image: plugins/npm + settings: + username: admin + password: + from_secret: npm_password + email: brandon@watsonlabs.net + registry: "http://linuxhost.me:4873/" + when: + event: + exclude: + - tag + - name: publish image: plugins/npm settings: diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 4c0f7d3..0000000 --- a/deploy.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -remote_user="bmw" -remote_server="linuxhost.me" -deploy_location="/home/bmw/homebridge-harmony-control" -homebridge_location="/var/lib/homebridge/" - -#build -tsc --build -#copy files to remote machine -scp -r bin $remote_user@$remote_server:$deploy_location -scp package.json $remote_user@$remote_server:$deploy_location - -#install package -ssh -t $remote_user@$remote_server "sudo npm install -g --unsafe-perm $deploy_location" - -#restart service -ssh -t -ssh -t $remote_user@$remote_server "sudo systemctl restart homebridge.service" -ssh -t $remote_user@$remote_server "sudo systemctl status homebridge.service" - -echo done -exit diff --git a/harmony.code-workspace b/harmony.code-workspace index 362d7c2..50a3257 100644 --- a/harmony.code-workspace +++ b/harmony.code-workspace @@ -3,5 +3,8 @@ { "path": "." } - ] + ], + "settings": { + "editor.tabSize": 2 + } } \ No newline at end of file