Skip to content

Commit

Permalink
build: Circle 2.0 migration
Browse files Browse the repository at this point in the history
fixes #20
  • Loading branch information
Pam Selle committed Jul 30, 2018
1 parent 7b2f7ae commit 0603538
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 18 deletions.
59 changes: 59 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,59 @@
defaults: &defaults
docker:
- image: circleci/node:8.10
working_directory: ~/circleci-deployment

version: 2

jobs:
install:
<<: *defaults
steps:
- checkout
- restore_cache:
key: yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run: yarn
- save_cache:
paths:
- node_modules
key: yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}

test:
<<: *defaults
steps:
- checkout
- restore_cache:
key: yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run: yarn run validate
- save_cache:
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
paths:
- dist

deploy:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
- run: cp .npmrc-ci .npmrc
- run: yarn run release

workflows:
version: 2
test_build_deploy:
jobs:
- install
- test:
requires:
- install
- deploy:
requires:
- install
- test
filters:
branches:
only:
- master
18 changes: 0 additions & 18 deletions circle.yml

This file was deleted.

0 comments on commit 0603538

Please sign in to comment.