Skip to content

Commit

Permalink
Circle ci semantic release (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 authored Sep 2, 2017
1 parent 1a754ca commit 5290336
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
[![serverless](https://img.shields.io/badge/serverless-1.0-dda415.svg)](http://www.serverless.com)
[![npm version](https://img.shields.io/npm/v/serverless-elasticsearch-client.svg)](https://www.npmjs.org/package/serverless-elasticsearch-client)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-dbb30b.svg)](https://standardjs.com)
[![CircleCI](https://circleci.com/gh/goldcaddy77/serverless-elasticsearch-client/tree/master.svg?style=shield)](https://circleci.com/gh/goldcaddy77/serverless-elasticsearch-client/tree/master)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)


## AWS Elasticsearch Client

Expand Down
16 changes: 16 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
machine:
environment:
# Since we override `dependencies`, ./node_modules/.bin doesn't get added to path automatically, so we add it
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: "6"
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn test
post:
- yarn run semantic-release || true
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "serverless-elasticsearch-client",
"version": "1.0.1",
"version": "0.0.0-development",
"description": "Elasticsearch client for AWS that plays nicely with serverless-offline and signed requests",
"main": "index.js",
"scripts": {
"precommit": "npm test",
"prepush": "npm test",
"preversion": "npm test",
"test": "./node_modules/.bin/ava --verbose"
"test": "./node_modules/.bin/ava --verbose",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/goldcaddy77/serverless-elasticsearch-client.git"
"url": "https://github.com/goldcaddy77/serverless-elasticsearch-client.git"
},
"keywords": [
"elasticsearch",
Expand All @@ -32,6 +33,11 @@
"devDependencies": {
"ava": "^0.18.2",
"aws-sdk": "^2.23.0",
"husky": "^0.13.2"
"condition-circle": "^1.5.0",
"husky": "^0.13.2",
"semantic-release": "^7.0.2"
},
"release": {
"verifyConditions": "condition-circle"
}
}

0 comments on commit 5290336

Please sign in to comment.