Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

Commit 3475a67

Browse files
committed
chore: setup semantic-release
1 parent 1d7cb9d commit 3475a67

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ node_js:
88
- '4'
99
- '6'
1010
- '7'
11-
before_install:
12-
- npm update -g npm
1311
before_script:
1412
- npm prune
13+
after_success:
14+
- npm run semantic-release
1515
branches:
1616
except:
1717
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "travis-deploy-once",
3-
"version": "1.0.0",
3+
"version": "0.0.0-development",
44
"description": "run a deployment script only once in the test matrix",
55
"main": "index.js",
66
"scripts": {
77
"test": "standard && npm run build",
88
"build": "babel src.js > index.js",
9-
"prepublish": "npm run build"
9+
"prepublish": "npm run build",
10+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1011
},
1112
"repository": {
1213
"type": "git",
13-
"url": "git+https://github.com/semantic-release/travis-deploy-once.git"
14+
"url": "https://github.com/semantic-release/travis-deploy-once.git"
1415
},
1516
"keywords": [
1617
"travis",
@@ -28,6 +29,7 @@
2829
"babel-cli": "^6.18.0",
2930
"babel-plugin-transform-async-to-generator": "^6.16.0",
3031
"babel-preset-es2015-node4": "^2.1.0",
32+
"semantic-release": "^6.3.1",
3133
"standard": "^8.5.0"
3234
},
3335
"dependencies": {

0 commit comments

Comments
 (0)