summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Cioria <firefelix@gmail.com>2017-01-04 15:54:42 +0100
committerFrancesco Cioria <firefelix@gmail.com>2017-01-04 15:54:42 +0100
commite21484a3b39ad4add71c147991e78859fdf16862 (patch)
tree1ef90febdb4d90dc114295da127e4f43b14418c7
parent9c1dd47deb17b1c130fe966b04e224adb0d66623 (diff)
downloadreact-autosize-textarea-e21484a3b39ad4add71c147991e78859fdf16862.zip
react-autosize-textarea-e21484a3b39ad4add71c147991e78859fdf16862.tar.gz
react-autosize-textarea-e21484a3b39ad4add71c147991e78859fdf16862.tar.bz2
add task to CI to update examples after every commit on master
-rw-r--r--.drone.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 4924df4..4d3a56f 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -23,6 +23,20 @@ build:
when:
branch: master
+ update-examples:
+ image: quay.io/buildo/node5-npm3-chrome
+ commands:
+ - npm run build-examples
+ - git add examples/bundle.js
+ - if ! git diff-index --quiet HEAD -- examples/bundle.js; then
+ git config --global user.name "nemobot";
+ git config --global user.email "our-bots@buildo.io";
+ git commit -m "Update examples [skip CI]";
+ git push origin master;
+ fi
+ when:
+ branch: master
+
notify:
downstream:
repositories: