From 64994dcacd17ac2877b5c7c485b0a6b566c003fc Mon Sep 17 00:00:00 2001 From: Ferdinand Prantl Date: Sat, 7 Jul 2018 19:44:25 +0200 Subject: [PATCH] chore: Enable semantic versioning automation --- .travis.yml | 3 +++ package.json | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 299ec4e..8916dc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ node_js: - '10' - '8' - '6' +after_success: + - npm run coverage + - npm run travis-deploy-once "npm run semantic-release" branches: except: - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index 27af871..601b629 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "build-number-generator", "description": "Generates a unique build number with the build time readable \"by a human\".", - "version": "0.0.1", + "version": "0.0.0-development", "homepage": "https://github.com/prantlf/build-number-generator", "author": { "name": "Ferdinand Prantl", @@ -34,7 +34,9 @@ "check": "tap tests/*.js", "test": "npm run lint && npm run check", "coveralls": "COVERALLS_REPO_TOKEN=gdW8xKIlPOKwdpTM79HShT78OTbpbSNBd npm run check -- --cov --coverage-report=lcov --no-browser", - "coverage": "test `node --version | cut -c 2` -eq 8 && npm run coveralls" + "coverage": "test `node --version | cut -c 2` -eq 8 && npm run coveralls", + "travis-deploy-once": "travis-deploy-once", + "semantic-release": "semantic-release" }, "dependencies": { "commander": "^2.16.0", @@ -43,7 +45,9 @@ "devDependencies": { "coveralls": "^3.0.2", "standard": "^11.0.1", - "tap": "^12.0.1" + "tap": "^12.0.1", + "travis-deploy-once": "^5.0.1", + "semantic-release": "^15.6.3" }, "keywords": [ "buildnumber",