yacd/.circleci/config.yml

34 lines
785 B
YAML
Raw Permalink Normal View History

2018-10-27 17:08:25 +08:00
version: 2
jobs:
build:
branches:
only:
- master
- dev
working_directory: ~/code
docker:
2019-08-17 18:42:04 +08:00
- image: circleci/node:12.8.1-buster
2018-10-27 17:08:25 +08:00
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: ''