Skip to content
This repository was archived by the owner on Nov 25, 2017. It is now read-only.

Commit cefe60f

Browse files
committed
chore: setup semantic-release
1 parent 374215e commit cefe60f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- iojs-v2
10+
- iojs-v1
11+
- '0.12'
12+
- '0.10'
13+
before_install:
14+
- npm i -g npm@^2.0.0
15+
before_script:
16+
- npm prune
17+
- 'curl -Lo travis_after_all.py https://git.io/vLSON'
18+
after_success:
19+
- npm run coverage:upload
20+
- python travis_after_all.py
21+
- export $(cat .to_export_back)
22+
- npm run semantic-release

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"nock": "^2.10.0",
2727
"nyc": "^3.0.0",
2828
"rimraf": "^2.4.2",
29+
"semantic-release": "^4.0.3",
2930
"standard": "^4.2.1",
3031
"tap": "^1.3.2"
3132
},
@@ -38,16 +39,20 @@
3839
],
3940
"license": "MIT",
4041
"main": "dist/index.js",
42+
"publishConfig": {
43+
"access": "public"
44+
},
4145
"repository": {
4246
"type": "git",
43-
"url": "git+https://github.com/semantic-release/last-release-npm.git"
47+
"url": "https://github.com/semantic-release/last-release-npm.git"
4448
},
4549
"scripts": {
4650
"build": "rimraf dist && mkdirp dist && babel src --out-dir dist",
4751
"build:tests": "rimraf .test && mkdirp .test && babel test --out-dir .test",
4852
"coverage": "nyc report",
4953
"coverage:upload": "npm run coverage -- --reporter=text-lcov | coveralls",
5054
"pretest:suite": "npm run build && npm run build:tests",
55+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
5156
"test": "npm run test:style && npm run test:suite",
5257
"test:style": "standard",
5358
"test:suite": "nyc tap --no-cov .test/specs/*.js"

0 commit comments

Comments
 (0)