1 | version: 2
|
2 | jobs:
|
3 | build:
|
4 | working_directory: ~/body-parser-graphql
|
5 | docker:
|
6 | - image: circleci/node:latest
|
7 | steps:
|
8 | - checkout
|
9 | - run:
|
10 | name: update-npm
|
11 | command: 'sudo npm install -g yarn@latest'
|
12 | - restore_cache:
|
13 | key: dependency-cache-{{ checksum "package.json" }}
|
14 | - run:
|
15 | name: install-yarn
|
16 | command: yarn install
|
17 | - save_cache:
|
18 | key: dependency-cache-{{ checksum "package.json" }}
|
19 | paths:
|
20 | - ./node_modules
|
21 | - run:
|
22 | name: test
|
23 | command: yarn test
|
24 | - run:
|
25 | name: release
|
26 | command: yarn semantic-release || true
|
27 | - store_artifacts:
|
28 | path: coverage
|
29 | prefix: coverage |
\ | No newline at end of file |