Skip to content

Commit

Permalink
ci: Setup releases from CircleCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed Dec 31, 2018
1 parent e3d03b4 commit 9b7b5ac
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
jobs:
build:
build_and_test:
docker:
- image: 'circleci/node:latest'
steps:
Expand All @@ -11,12 +11,40 @@ jobs:
- yarn-v1-{{ .Branch }}-
- yarn-v1-
- run:
name: install
name: Install
command: yarn install
- run:
name: test
command: yarn run test
name: Build
command: yarn build
- run:
name: Test
command: yarn test
- save_cache:
paths:
- ~/.cache/yarn
key: yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- persist_to_workspace:
root: .
paths:
- project
release:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Release
command: yarn semantic-release

workflows:
version: 2
build_test_publish:
jobs:
- build_and_test
- release
branches:
only:
- master
requires: build_and_test

0 comments on commit 9b7b5ac

Please sign in to comment.