Skip to content

Commit f298dd2

Browse files
committed
build(npm): Switched to semantic-release
1 parent d20b948 commit f298dd2

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

.travis.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1+
sudo: false
12
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
28
node_js:
3-
- "stable"
4-
- "6"
5-
- "4"
6-
- "0.12"
9+
- 'stable'
10+
- '6'
11+
- '4'
12+
- iojs-v3
13+
- iojs-v2
14+
- iojs-v1
15+
- '0.12'
16+
before_install:
17+
- npm i -g npm@^2.0.0
18+
before_script:
19+
- npm prune
720
after_success:
821
- bash <(curl -s https://codecov.io/bash)
22+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
23+
- python travis_after_all.py
24+
- export $(cat .to_export_back) &> /dev/null
25+
- npm run semantic-release
26+
branches:
27+
except:
28+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "attr-accept",
3-
"version": "1.0.3",
43
"description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">",
54
"main": "dist/index.js",
65
"scripts": {
@@ -9,11 +8,12 @@
98
"test": "mocha --compilers js:babel/register --recursive",
109
"test:watch": "npm test -- --watch",
1110
"lint": "eslint ./src",
12-
"check": "npm run lint && npm test"
11+
"check": "npm run lint && npm test",
12+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1313
},
1414
"repository": {
1515
"type": "git",
16-
"url": "git+https://github.com/okonet/attr-accept.git"
16+
"url": "https://github.com/okonet/attr-accept.git"
1717
},
1818
"keywords": [
1919
"html5",
@@ -42,7 +42,8 @@
4242
"eslint-plugin-react": "^3.3.1",
4343
"expect": "^1.9.0",
4444
"mocha": "^2.3.2",
45-
"webpack": "1.12.2"
45+
"webpack": "1.12.2",
46+
"semantic-release": "^4.3.5"
4647
},
4748
"engines": {
4849
"node": ">=0.10"

0 commit comments

Comments
 (0)