Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit f92e680

Browse files
committed
build(release): initial adoption of semantic-release and commitlint
1 parent 5b2d0ca commit f92e680

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ addons:
3838
- fakeroot
3939
- git
4040
- libsecret-1-dev
41+
42+
node_js: lts/*
43+
44+
after_success:
45+
# Add apm to the PATH
46+
- export PATH=${PATH}:${HOME}/atom/usr/bin/
47+
48+
deploy:
49+
provider: script
50+
skip_cleanup: true
51+
script:
52+
- npx semantic-release

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
"fs-plus": "^3.0.1"
3030
},
3131
"devDependencies": {
32+
"@commitlint/cli": "^6.1.3",
33+
"@commitlint/config-conventional": "^6.1.3",
34+
"@commitlint/travis-cli": "^6.1.3",
35+
"@semantic-release/apm-config": "^2.0.1",
36+
"husky": "^0.14.3",
37+
"semantic-release": "^15.1.7",
3238
"eslint": "^4.6.0",
3339
"eslint-config-airbnb-base": "^12.0.0",
3440
"eslint-plugin-import": "^2.7.0",
@@ -38,6 +44,7 @@
3844
"linter:2.0.0"
3945
],
4046
"scripts": {
47+
"commitmsg": "commitlint -e $GIT_PARAMS",
4148
"lint": "eslint .",
4249
"test": "apm test"
4350
},
@@ -68,5 +75,13 @@
6875
"2.0.0": "provideLinter"
6976
}
7077
}
78+
},
79+
"release": {
80+
"extends": "@semantic-release/apm-config"
81+
},
82+
"commitlint": {
83+
"extends": [
84+
"@commitlint/config-conventional"
85+
]
7186
}
72-
}
87+
}

0 commit comments

Comments
 (0)