yacd/.circleci/config.yml

34 lines
787 B
YAML
Raw Normal View History

2018-10-27 17:08:25 +08:00
version: 2
jobs:
build:
branches:
only:
- master
- dev
working_directory: ~/code
docker:
- image: circleci/node:10.12.0-stretch
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: lint
command: yarn lint
- run:
name: build
command: yarn build
- store_artifacts:
path: public/report.html
prefix: ''