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

Commit

Permalink
chore: Add CircleCI config (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ynnoj committed Aug 31, 2018
1 parent ee8ce0d commit fb2f85b
Show file tree
Hide file tree
Showing 3 changed files with 3,664 additions and 126 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,46 @@
version: 2
jobs:
build:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- restore_cache:
keys:
- nautic-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- nautic-
- run: yarn
- save_cache:
paths:
- node_modules
key: nautic-{{ checksum "package.json" }}
test:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- restore_cache:
keys:
- nautic-{{ checksum "package.json" }}
- run: yarn test
release:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- restore_cache:
keys:
- nautic-{{ checksum "package.json" }}
- run: npx semantic-release
workflows:
version: 2
test_release:
jobs:
- test
- release:
filters:
branches:
only: master
requires:
- test
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -16,7 +16,8 @@
"devDependencies": {
"husky": "^1.0.0-rc.8",
"prettier": "^1.13.5",
"pretty-quick": "^1.6.0"
"pretty-quick": "^1.6.0",
"semantic-release": "^15.9.12"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit fb2f85b

Please sign in to comment.