bc2208b5cb
All checks were successful
continuous-integration/drone/push Build is passing
commit bccadde36f8df34ce9bfd96f73f39428af5c4b14 Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:48:46 2021 -0400 Using correct branch inclusion commit93132ab868
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:40:00 2021 -0400 excluding publishing on PRs commit496dd42cfd
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:38:37 2021 -0400 Only publishing master branch commit57e82789fb
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:36:16 2021 -0400 WIP commitecc54ad3c3
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:35:29 2021 -0400 WIP commit6d3cd651be
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:30:18 2021 -0400 Attempting to use drone commit in preid commitc60387a987
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:16:46 2021 -0400 Adding sequence file commitd8a5e7541d
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:16:11 2021 -0400 Prettier commit34fcc1df1a
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:14:33 2021 -0400 Updating pre-release command commit6c8ce21164
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:03:41 2021 -0400 Updating drone config commitb6d9317a1e
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:58:35 2021 -0400 Revert "Using email alias" This reverts commitd1a3b80293
. commitd1a3b80293
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:57:22 2021 -0400 Using email alias commit027d1711ad
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:36:07 2021 -0400 Removing bash_profile commited06d7ecd0
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:23:46 2021 -0400 WIP commitd3c37b18b9
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:22:35 2021 -0400 Updating registry path
76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: clone
|
|
image: alpine/git
|
|
commands:
|
|
- git clone https://gitea.watsonlabs.net/watsonb8/homebridge-harmony-control.git .
|
|
- git checkout $DRONE_COMMIT
|
|
|
|
- name: build
|
|
image: node
|
|
commands:
|
|
- npm install
|
|
- npm run build
|
|
|
|
- name: version
|
|
image: node
|
|
commands:
|
|
- export version=`node -p "require('./package.json').version"`
|
|
- export commit=`echo $DRONE_COMMIT | cut -c1-5`
|
|
- npm version prerelease --preid=$commit --git-tag-version=false --allow-same-version=true
|
|
when:
|
|
event:
|
|
exclude:
|
|
- tag
|
|
- pull_request
|
|
branch:
|
|
include:
|
|
- master
|
|
|
|
- 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
|
|
- pull_request
|
|
branch:
|
|
include:
|
|
- master
|
|
|
|
- name: publish tagged version
|
|
image: plugins/npm
|
|
settings:
|
|
username: admin
|
|
password:
|
|
from_secret: npm_password
|
|
email: brandon@watsonlabs.net
|
|
registry: "http://linuxhost.me:4873/"
|
|
when:
|
|
event:
|
|
- tag
|
|
exclude:
|
|
- pull_request
|
|
|
|
notify:
|
|
image: drillster/drone-email
|
|
host: smtp.watsonlabs.net
|
|
username: srvGitea
|
|
password:
|
|
from_secret: smtp_password
|
|
from: drone@watsonlabs.net
|
|
when:
|
|
status: [failure]
|