-
Notifications
You must be signed in to change notification settings - Fork 13
/
circle.yml
36 lines (36 loc) · 1001 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
version: 2
jobs:
build:
working_directory: ~/monapt
docker:
- image: node:boron
steps:
- checkout
- restore_cache:
key: node-{{ .Branch }}-{{ checksum "package.json" }}
- run:
name: Installing JS dependencies
command: yarn
- save_cache:
key: node-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- "node_modules"
- run:
name: Validating commit messages
command: yarn commitplease origin/master..HEAD
- run:
name: Linting code
command: yarn lint:ts
- run:
name: Running tests
command: yarn test
- run:
name: Reporting code coverage to Coveralls
command: yarn coverage
- run:
name: Publishing to npm (master only)
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
yarn build
yarn semantic-release || true
fi