Skip to content

Commit

Permalink
chore: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Mar 8, 2018
1 parent 835715e commit 1275d79
Show file tree
Hide file tree
Showing 3 changed files with 1,004 additions and 280 deletions.
81 changes: 52 additions & 29 deletions .circleci/config.yml
@@ -1,36 +1,59 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#

default-test-config: &default-test-config
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
- run: yarn run coverage

version: 2

workflows:
version: 2
test:
jobs:
- test-node-8
- test-node-9
- release:
requires:
- test-node-8
- test-node-9
jobs:
test-node-8:
<<: *default-test-config
docker:
- image: circleci/node:8.9.4
- image: circleci/node:8
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
- run: yarn run coverage

test-node-9:
<<: *default-test-config
docker:
- image: circleci/node:9.5.0
- image: circleci/node:9
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
- run: yarn run coverage

workflows:
version: 2
test:
jobs:
- "test-node-8"
- "test-node-9"
release:
working_directory: ~/repo
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "yarn.lock" }}
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}
- run: npm run semantic-release || true
14 changes: 11 additions & 3 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@denali-js/core",
"version": "0.1.2",
"version": "0.0.0-development",
"description": "A batteries-included Node.js API framework",
"homepage": "http://denalijs.org",
"repository": "denali-js/core",
Expand All @@ -11,6 +11,9 @@
},
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"publishConfig": {
"tag": "canary"
},
"engines": {
"node": ">=7.6"
},
Expand All @@ -29,14 +32,17 @@
"addon"
],
"devDependencies": {
"@commitlint/cli": "^6.1.3",
"@commitlint/config-conventional": "^6.1.3",
"broccoli-funnel": "^2.0.1",
"broccoli-merge-trees": "^2.0.0",
"broccoli-typescript-compiler": "^2.1.0",
"codeclimate-test-reporter": "^0.5.0",
"husky": "^0.14.3",
"jsonapi.ts": "^0.0.5",
"nyc": "^11.2.1",
"rimraf": "^2.6.2",
"standard-version": "^4.2.0",
"semantic-release": "^12.4.1",
"tslint": "^5.7.0",
"typescript": "^2.5.3"
},
Expand All @@ -45,9 +51,11 @@
"firstbuild": "npm run bootstrap && npm run build",
"lint": "tslint --project tsconfig.json -c tslint.json --type-check | sed \"s|$PWD/||\"",
"bootstrap": "tsc",
"commitmsg": "commitlint -e $GIT_PARAMS",
"coverage": "scripts/coverage.sh",
"prepublishOnly": "npm run firstbuild",
"test": "scripts/test.sh"
"test": "scripts/test.sh",
"semantic-release": "semantic-release"
},
"license": "Apache-2.0",
"dependencies": {
Expand Down

0 comments on commit 1275d79

Please sign in to comment.