forked from palantir/plottable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (48 loc) · 1.14 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
general:
artifacts:
# Compiled assets
- plottable.js
- plottable.css
# Demo paths
- quicktests
# Modules used by quicktests
- node_modules/d3
- node_modules/jquery
- node_modules/requirejs
machine:
node:
version: 6.1.0
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn test:ci
deployment:
publish-npm-next:
branch: develop
owner: palantir
commands:
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- ./publishSnapshot.sh
- ./demo.js
demo:
branch: /.*/
owner: palantir
commands:
- ./demo.js || true
publish-npm-latest:
tag: /v[0-9.]+(-(beta|rc)[0-9.]*)?$/
owner: palantir
commands:
# Confirm we are ready to publish
- yarn dist
- git diff HEAD..origin/develop --quiet || (echo "dist not built"; exit 1)
- npm run -s check_version || (echo "package.json version not updated"; exit 1)
# Publish
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- npm publish