Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Add CircleCI config.
Browse files Browse the repository at this point in the history
  • Loading branch information
occar421 committed Mar 30, 2018
1 parent 407de84 commit fd151dd
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
version: 2

jobs:
build_6:
docker:
- image: circleci/node:6
working_directory: ~/
steps:
- checkout

- restore_cache:
keys:
- 6-dep-{{ checksum "package.json" }}
- 6-dep-

- run: yarn install

- save_cache:
paths:
- node_modules
key: 6-dep-{{ checksum "package.json" }}

- run: yarn test

build_8:
docker:
- image: circleci/node:8
working_directory: ~/
steps:
- checkout

- restore_cache:
keys:
- 8-dep-{{ checksum "package.json" }}
- 8-dep-

- run: yarn install

- save_cache:
paths:
- node_modules
key: 8-dep-{{ checksum "package.json" }}

- run: yarn test

deploy:
docker:
- image: circleci/node:8
working_directory: ~/
steps:
- checkout

- run: echo "registry=https://registry.npmjs.org/" > ~/.npmrc
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc

- run: npm publish

workflows:
version: 2
build-deploy:
jobs:
- build_6
- build_8
- approve: # Wait for AppVeyor's result
type: approval
requires:
- build_6
- build_8
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
- deploy:
retuires:
- approve

0 comments on commit fd151dd

Please sign in to comment.