Skip to content

Commit 5f955db

Browse files
committed
chore(build): Use semantic-release
1 parent 6183462 commit 5f955db

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

.travis.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1+
sudo: false
12
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
28
node_js:
3-
- "4.2"
4-
- "stable"
9+
- '4'
10+
- 'stable'
511
script:
612
- npm run lint
713
- npm test
814
- npm link --silent && npm link crawlkit-runner-accessibility-developer-tools --silent
915
- for f in examples/*.js; do echo "• running '$f'" && travis_retry node $f > /dev/null; done
16+
before_install:
17+
- npm i -g npm@^2.0.0
18+
before_script:
19+
- npm prune
20+
after_success:
21+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
22+
- python travis_after_all.py
23+
- 'export $(cat .to_export_back) &> /dev/null'
24+
- npm run semantic-release
25+
branches:
26+
except:
27+
- "/^v\\d+\\.\\d+\\.\\d+$/"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![David](https://img.shields.io/david/crawlkit/runner-accessibility-developer-tools.svg)]()
66
[![node](https://img.shields.io/node/v/crawlkit-runner-accessibility-developer-tools.svg)]()
77
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
8+
[![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)
89

910
This runner can be used with [CrawlKit](https://github.com/crawlkit/crawlkit) in order to audit a website with the [Google Chrome Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools).
1011

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "crawlkit-runner-accessibility-developer-tools",
3-
"version": "1.1.2",
43
"description": "A CrawlKit runner for running the Google Chrome a11y developer tools",
54
"main": "src/index.js",
65
"scripts": {
76
"test": "mocha",
87
"lint": "eslint .",
9-
"tdd": "mocha --watch --reporter min"
8+
"tdd": "mocha --watch --reporter min",
9+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1010
},
1111
"repository": {
1212
"type": "git",
13-
"url": "git+ssh://git@github.com/crawlkit/runner-accessibility-developer-tools.git"
13+
"url": "https://github.com/crawlkit/runner-accessibility-developer-tools.git"
1414
},
1515
"keywords": [
1616
"crawlkit",
@@ -38,7 +38,8 @@
3838
"eslint-config-airbnb": "^4.0.0",
3939
"freeport": "^1.0.5",
4040
"http-server": "^0.8.5",
41-
"mocha": "^2.3.4"
41+
"mocha": "^2.3.4",
42+
"semantic-release": "^4.3.5"
4243
},
4344
"dependencies": {
4445
"accessibility-developer-tools": "^2.10.0",
@@ -56,4 +57,4 @@
5657
"path": "./node_modules/cz-conventional-changelog"
5758
}
5859
}
59-
}
60+
}

0 commit comments

Comments
 (0)