ci: Fix CircleCI.

This commit is contained in:
Dylan Vann 2018-12-30 20:07:20 -05:00
parent 7f73ab7935
commit 069aa02f32

View File

@ -1,6 +1,6 @@
version: 2 version: 2
jobs: jobs:
build_and_test: build-and-test:
docker: docker:
- image: 'circleci/node:latest' - image: 'circleci/node:latest'
steps: steps:
@ -24,28 +24,28 @@ jobs:
- ~/.cache/yarn - ~/.cache/yarn
key: yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }} key: yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
- project - project
release: release:
docker: docker:
- image: 'circleci/node:latest' - image: 'circleci/node:latest'
steps: steps:
- checkout - checkout
- attach_workspace: - attach_workspace:
at: . at: .
- run: - run:
name: Release name: Release
command: yarn semantic-release command: yarn semantic-release
workflows: workflows:
version: 2 version: 2
build_test_publish: build-test-publish:
jobs: jobs:
- build_and_test - build-and-test
- release: - release:
branches: branches:
only: only:
- master - master
requires: requires:
- build_and_test - build_and_test