forked from egoist/poi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
33 lines (33 loc) · 925 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
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/node:latest-browsers
branches:
ignore:
- gh-pages # list of branches to ignore
- /release\/.*/ # or ignore regexes
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: install dependences
command: yarn
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run:
name: test
command: yarn test
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: Publish
command: |
if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
yarn lerna publish from-git --yes
fi