forked from buildo/rc-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
38 lines (35 loc) · 845 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
38
build:
rc-datepicker:
image: quay.io/buildo/node6-chrome
environment:
- NPM_CONFIG_CACHE=/drone/.npm
- NPM_CONFIG_LOGLEVEL=warn
commands:
- yarn
- npm run lint
- npm run lint-style
- npm test
generate-readme:
image: node:6
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 "[email protected]";
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