forked from buildo/react-autosize-textarea
/
.drone.yml
37 lines (34 loc) · 850 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
build:
test-and-lint:
image: quay.io/buildo/node5-npm3-chrome
environment:
- NPM_CONFIG_CACHE=/drone/.npm
- NPM_CONFIG_LOGLEVEL=warn
commands:
- npm i
- npm run lint
- npm test
generate-readme:
image: quay.io/buildo/node5-npm3-chrome
commands:
- npm run generate-readme
- git add src/README.md
- if ! git diff-index --quiet HEAD -- src/README.md; then
git config --global user.name "nemobot";
git config --global user.email "our-bots@buildo.io";
git commit -m "Update README [skip CI]";
git push origin master;
fi
when:
branch: master
notify:
downstream:
repositories:
- buildo/react-components
token: $$NOTIFY_BRC_TOKEN
fork: true
when:
branch: master
cache:
mount:
- /drone/.npm