forked from palantir/typesettable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
38 lines (34 loc) · 857 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
general:
artifacts:
- docs
- preview
machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8.8.1
dependencies:
override:
- yarn install --pure-lockfile
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn test
deployment:
preview:
branch: /.*/
commands:
- npm run preview # build the preview bundle
- ./preview/demo.js # comment back on github
npm:
tag: /release-.*/
owner: palantir
commands:
- npm run build
# Confirm we are ready to publish
- git diff HEAD..origin/master --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