Skip to content

Commit 1275d79

Browse files
committed
chore: add semantic release
1 parent 835715e commit 1275d79

File tree

3 files changed

+1004
-280
lines changed

3 files changed

+1004
-280
lines changed

.circleci/config.yml

Lines changed: 52 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,59 @@
1-
# Javascript Node CircleCI 2.0 configuration file
2-
#
3-
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4-
#
5-
6-
default-test-config: &default-test-config
7-
working_directory: ~/repo
8-
steps:
9-
- checkout
10-
- restore_cache:
11-
key: dependencies-{{ checksum "yarn.lock" }}
12-
- run: yarn install
13-
- save_cache:
14-
paths:
15-
- node_modules
16-
key: dependencies-{{ checksum "yarn.lock" }}
17-
- run: yarn test
18-
- run: yarn run coverage
19-
201
version: 2
2+
3+
workflows:
4+
version: 2
5+
test:
6+
jobs:
7+
- test-node-8
8+
- test-node-9
9+
- release:
10+
requires:
11+
- test-node-8
12+
- test-node-9
2113
jobs:
2214
test-node-8:
23-
<<: *default-test-config
2415
docker:
25-
- image: circleci/node:8.9.4
16+
- image: circleci/node:8
17+
working_directory: ~/repo
18+
steps:
19+
- checkout
20+
- restore_cache:
21+
key: dependencies-{{ checksum "yarn.lock" }}
22+
- run: yarn install
23+
- save_cache:
24+
paths:
25+
- node_modules
26+
key: dependencies-{{ checksum "yarn.lock" }}
27+
- run: yarn test
28+
- run: yarn run coverage
29+
2630
test-node-9:
27-
<<: *default-test-config
2831
docker:
29-
- image: circleci/node:9.5.0
32+
- image: circleci/node:9
33+
working_directory: ~/repo
34+
steps:
35+
- checkout
36+
- restore_cache:
37+
key: dependencies-{{ checksum "yarn.lock" }}
38+
- run: yarn install
39+
- save_cache:
40+
paths:
41+
- node_modules
42+
key: dependencies-{{ checksum "yarn.lock" }}
43+
- run: yarn test
44+
- run: yarn run coverage
3045

31-
workflows:
32-
version: 2
33-
test:
34-
jobs:
35-
- "test-node-8"
36-
- "test-node-9"
46+
release:
47+
working_directory: ~/repo
48+
docker:
49+
- image: circleci/node:latest
50+
steps:
51+
- checkout
52+
- restore_cache:
53+
key: dependencies-{{ checksum "yarn.lock" }}
54+
- run: yarn install
55+
- save_cache:
56+
paths:
57+
- node_modules
58+
key: dependencies-{{ checksum "yarn.lock" }}
59+
- run: npm run semantic-release || true

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@denali-js/core",
3-
"version": "0.1.2",
3+
"version": "0.0.0-development",
44
"description": "A batteries-included Node.js API framework",
55
"homepage": "http://denalijs.org",
66
"repository": "denali-js/core",
@@ -11,6 +11,9 @@
1111
},
1212
"main": "dist/lib/index.js",
1313
"types": "dist/lib/index.d.ts",
14+
"publishConfig": {
15+
"tag": "canary"
16+
},
1417
"engines": {
1518
"node": ">=7.6"
1619
},
@@ -29,14 +32,17 @@
2932
"addon"
3033
],
3134
"devDependencies": {
35+
"@commitlint/cli": "^6.1.3",
36+
"@commitlint/config-conventional": "^6.1.3",
3237
"broccoli-funnel": "^2.0.1",
3338
"broccoli-merge-trees": "^2.0.0",
3439
"broccoli-typescript-compiler": "^2.1.0",
3540
"codeclimate-test-reporter": "^0.5.0",
41+
"husky": "^0.14.3",
3642
"jsonapi.ts": "^0.0.5",
3743
"nyc": "^11.2.1",
3844
"rimraf": "^2.6.2",
39-
"standard-version": "^4.2.0",
45+
"semantic-release": "^12.4.1",
4046
"tslint": "^5.7.0",
4147
"typescript": "^2.5.3"
4248
},
@@ -45,9 +51,11 @@
4551
"firstbuild": "npm run bootstrap && npm run build",
4652
"lint": "tslint --project tsconfig.json -c tslint.json --type-check | sed \"s|$PWD/||\"",
4753
"bootstrap": "tsc",
54+
"commitmsg": "commitlint -e $GIT_PARAMS",
4855
"coverage": "scripts/coverage.sh",
4956
"prepublishOnly": "npm run firstbuild",
50-
"test": "scripts/test.sh"
57+
"test": "scripts/test.sh",
58+
"semantic-release": "semantic-release"
5159
},
5260
"license": "Apache-2.0",
5361
"dependencies": {

0 commit comments

Comments
 (0)