Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit b3ed119

Browse files
feat: semantic versioning
1 parent a2c902d commit b3ed119

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.travis.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ branches:
33
only:
44
- master
55
- /^greenkeeper/.*$/
6-
env:
7-
global:
8-
#github
9-
- secure: "GQeUlVfcUQp8MqOg3AdXvu6gvmep/dIKeNzGSDVkH5e/jXoCZwGX6r1EfFZ4HMcA22YyVrQBhwQHDgphnbEdrUjSlX5R2IHD6miSDlftR882/aZPEBmIXWakDKKzM43HZu0dLGWxRW5SUfIswQb0MaHYZE9p4enuHQffzEHPQQygUxe7lek7CuJehnLmNg8MztXOQUH7AFaPzS5ynf8IQntIB2/2kMrf92nKktRBZk3y2jOmZU/4PtIcaq5RzaHGzV3zITbJReOEXg5SnV677IQGqhRGXFm4Over9Gjau5hWqyWHq4fSznmOIM6naFMcRBUDSf8wtDCzGkT2qAXjnGoh9mIAsiOoBcHaa3KXdytzY52u/PZW9uJkOWAgG73iOlD0TmFRyUaXOwtrXpeVpMyCQkN5kp8E2d1YAGqNT/rxld/BS3ypNrxkS2EGdw2+7Mx0SP2bW9DNbOQdvv/15xLKKhL8JiWWq7uaaAK8uqBCt6WPVvO1GTMVlzRo97jl7djsXu2IAujsvf4OP65IH+9fdA7+NaIdzq1j/VAotBu0+OVriHpzxVSIlDkqY6yQbnwWYXDt7/BLn/0RUcp8eXGaimQByExsnqjfGqiwkUS819ek/dckSnbDL6dzP9lyrjCbFSMLzPPo+pb7SMBPV4cqUNzBf6hpxIRS5hQw7sg="
6+
cache:
7+
directories:
8+
- ~/.npm
9+
notifications:
10+
email: false
1011
install:
1112
- npm install
12-
- npm install standard-version --no-save
13+
- npm install semantic-release --no-save
1314
script:
1415
- npm run test
1516
- npm run build
16-
- npx standard-version
17-
- git push --follow-tags https://[email protected]/$TRAVIS_REPO_SLUG HEAD:$TRAVIS_BRANCH
17+
- npx semantic-release
18+
after_success:
19+
- npm run travis-deploy-once "npm run semantic-release"

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueprint-npm-module",
3-
"version": "1.1.5",
3+
"version": "0.0.0-development",
44
"description": "",
55
"main": "./lib/index.js",
66
"directories": {
@@ -18,7 +18,9 @@
1818
"lint": "eslint src",
1919
"build": "cross-env BABEL_ENV=production babel src --out-dir lib",
2020
"prepare": "npm run clean && npm run lint && npm run test && npm run build",
21-
"commitmsg": "commitlint -E GIT_PARAMS"
21+
"commitmsg": "commitlint -E GIT_PARAMS",
22+
"semantic-release": "semantic-release",
23+
"travis-deploy-once": "travis-deploy-once"
2224
},
2325
"commitlint": {
2426
"extends": [
@@ -36,7 +38,7 @@
3638
],
3739
"repository": {
3840
"type": "git",
39-
"url": "git+https://github.com/basics/blueprint-npm-module.git"
41+
"url": "https://github.com/basics/blueprint-npm-module.git"
4042
},
4143
"keywords": [
4244
"blueprint",
@@ -67,6 +69,8 @@
6769
"husky": "^0.14.3",
6870
"istanbul": "^0.4.5",
6971
"mocha": "^5.2.0",
70-
"rimraf": "^2.6.2"
72+
"rimraf": "^2.6.2",
73+
"semantic-release": "^15.9.8",
74+
"travis-deploy-once": "^5.0.2"
7175
}
7276
}

0 commit comments

Comments
 (0)