diff --git a/.travis.yml b/.travis.yml index 38ea4fc..aad8894 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,18 @@ -language: node_js -node_js: -- '0.10' -notifications: - email: false 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 613602e..f7cdb95 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,31 @@ { "name": "hoodie-plugin-users", - "version": "2.2.2", "description": "Hoodie plugin for handling user accounts and dbs", - "repository": { - "type": "git", - "url": "https://github.com/hoodiehq/hoodie-plugin-users.git" - }, "dependencies": { "async": "^1.5.0", "bs58": "^3.0.0", "lodash": "^3.10.1", "simplesmtp": "^0.3.32" }, - "scripts": { - "test": "standard" - }, "devDependencies": { + "semantic-release": "^4.3.5", "standard": "^5.3.1" + }, + "publishConfig": { + "tag": "next" + }, + "release": { + "branch": "next", + "fallbackTags": { + "next": "latest" + } + }, + "repository": { + "type": "git", + "url": "https://github.com/hoodiehq/hoodie-plugin-users.git" + }, + "scripts": { + "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "test": "standard" } }