Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/omakase-js/omakase
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 2, 2019
2 parents 2840686 + c00e1bf commit 7a8d8d8
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 2
jobs:
build:
docker:
- image: circleci/node
steps:
- checkout

- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- 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

- run: # run tests
name: Test
command: yarn jest

deploy:
machine:
enabled: true
steps:
- checkout
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile

- run:
name: Setting up NPM
command: 'echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc'

- run:
name: Deploy
command: yarn release

0 comments on commit 7a8d8d8

Please sign in to comment.