Skip to content

Commit 84e422e

Browse files
committed
refactor(htmlhint): add semantic release (#294)
1 parent ffd50ab commit 84e422e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: node_js
22
cache:
33
directories:
4-
- node_modules
54
- ~/.npm
65
notifications:
76
email:
@@ -26,3 +25,5 @@ branches:
2625
- /^greenkeeper/.*$/
2726
except:
2827
- /^v\d+\.\d+\.\d+$/
28+
after_success:
29+
- test $TRAVIS_BRANC = "master" && test $TRAVIS_PULL_REQUEST = "false" && npm run travis-deploy-once "npm run semantic-release"

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "htmlhint",
3-
"version": "0.9.14",
3+
"version": "0.0.0-development",
44
"description": "The Static Code Analysis Tool for your HTML",
55
"repository": {
66
"type": "git",
@@ -23,7 +23,9 @@
2323
"scripts": {
2424
"commit": "npx git-cz",
2525
"prettier": "prettier --write ./**/*.{js,json,md} --ignore-path ./.prettierignore",
26-
"test": "grunt exec:test"
26+
"test": "grunt exec:test",
27+
"travis-deploy-once": "travis-deploy-once",
28+
"semantic-release": "semantic-release"
2729
},
2830
"husky": {
2931
"hooks": {
@@ -75,6 +77,8 @@
7577
"lint-staged": "^7.2.2",
7678
"mocha": "5.2.0",
7779
"prettier": "^1.14.2",
78-
"pretty-quick": "^1.6.0"
80+
"pretty-quick": "^1.6.0",
81+
"travis-deploy-once": "^5.0.7",
82+
"semantic-release": "^15.9.12"
7983
}
8084
}

0 commit comments

Comments
 (0)