diff --git a/.travis.yml b/.travis.yml index a503466..0cd1632 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,6 @@ before_script: script: - npm run lint - npm run test +after_success: + - npm run semantic-release diff --git a/bin/xlf-translate b/bin/xlf-translate index 036b98c..3a86e11 100755 --- a/bin/xlf-translate +++ b/bin/xlf-translate @@ -9,7 +9,6 @@ const translate = require('../translate'); const args = (() => { const argparse = require('argparse'); const parser = new argparse.ArgumentParser({ - version: '1.0.0', addHelp: true, description: 'Looks-up translations based on unique keys' }); diff --git a/package.json b/package.json index 2cf8f36..d91558a 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "translate.js", "scripts": { "lint": "eslint *.js bin/*", + "semantic-release": "semantic-release pre && npm publish && semantic-release post", "test": "jasmine" }, "bin": { @@ -23,6 +24,7 @@ }, "devDependencies": { "eslint": "^3.14.1", - "jasmine": "2.5.3" + "jasmine": "2.5.3", + "semantic-release": "^6.3.2" } }