diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a1ace24 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +sudo: false +language: node_js +cache: + directories: + - node_modules +notifications: + email: false +node_js: + - '4' +before_install: + - npm i -g npm@^2.0.0 +before_script: + - npm prune +after_success: + - npm run semantic-release +branches: + except: + - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/package.json b/package.json index b29f718..3483e6d 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "awss3-deploy", - "version": "0.0.0", "description": "Deploy artefacts with aws-cli to S3", "main": "index.js", "bin": "index.js", "scripts": { - "test": "standard" + "test": "standard", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { "type": "git", - "url": "git+https://github.com/tlvince/awss3-deploy.git" + "url": "https://github.com/tlvince/awss3-deploy.git" }, "keywords": [ "aws", @@ -27,7 +27,8 @@ "homepage": "https://github.com/tlvince/awss3-deploy#readme", "dependencies": {}, "devDependencies": { - "standard": "^5.4.1" + "standard": "^5.4.1", + "semantic-release": "^4.3.5" }, "directories": { "test": "test"