Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 69b49ff

Browse files
authored
Merge pull request #77 from segmentio/circle-ci-2.0
Migrate to Circle CI 2.0
2 parents d8c07af + 1f4613d commit 69b49ff

File tree

2 files changed

+34
-30
lines changed

2 files changed

+34
-30
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
jobs:
3+
test:
4+
docker:
5+
- image: circleci/node:4-browsers
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
key: dependency-cache-{{ checksum "package.json" }}
10+
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
11+
- run: make test
12+
- save_cache:
13+
key: dependency-cache-{{ checksum "package.json" }}
14+
paths:
15+
- node_modules
16+
publish:
17+
docker:
18+
- image: circleci/node:4-browsers
19+
steps:
20+
- attach_workspace: { at: . }
21+
- run: npm publish .
22+
workflows:
23+
version: 2
24+
test_and_publish:
25+
jobs:
26+
- test
27+
- publish:
28+
requires:
29+
- test
30+
filters:
31+
tags:
32+
only: /[0-9]+(\.[0-9]+)*(-.+)?/
33+
branches:
34+
only: master

circle.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)