-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
38 lines (38 loc) · 836 Bytes
/
circle.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
machine:
node:
version: "6"
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
general:
branches:
ignore:
- gh-pages
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
pre:
- yarn run clean
override:
- yarn test
- yarn run lint
- yarn run flow
deployment:
coverage:
branch: [master, /^hotfix\/.*$/, /^feature\/.*$/]
commands:
- yarn run coveralls
release:
tag: /^v[0-9]+(\.[0-9]+)*$/
owner: yeojz
commands:
- yarn run clean
- yarn run build
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- npm publish
- npm logout
- git config --global user.email $CI_DEPLOY_EMAIL
- git config --global user.name $CI_DEPLOY_NAME
- yarn run deploy-gh-pages