Permalink
Browse files

build: Enabled semantic release (#111)

* build: Added semantic-release and removed version field from package.json
* style: Added emojis to postinstall
* chore: Removed npmpub from package.json
* build: Enabled semantic-release
  • Loading branch information...
1 parent a74135d commit 0d5a8416a6cf770fe78fdcd63b584cbfe7ec43c3 @okonet committed on GitHub Dec 14, 2016
Showing with 25 additions and 13 deletions.
  1. +20 −7 .travis.yml
  2. +5 −6 package.json
View
@@ -1,9 +1,22 @@
+sudo: false
language: node_js
+cache:
+ directories:
+ - node_modules
node_js:
- - "6"
- - "5"
- - "5.1"
- - "5.0"
- - "4"
- - "4.1"
- - "4.0"
+ - "7"
+ - "6"
+ - "5"
+ - "4"
+before_install:
+ - npm i -g npm@^2.0.0
+before_script:
+ - npm prune
+after_success:
+ - "curl -Lo travis_after_all.py https://git.io/travis_after_all"
+ - python travis_after_all.py
+ - export $(cat .to_export_back) &> /dev/null
+ - npm run semantic-release
+branches:
+ except:
+ - /^v\d+\.\d+\.\d+$/
View
@@ -1,20 +1,19 @@
{
"name": "lint-staged",
- "version": "3.2.2",
"description": "Lint files staged by git",
"main": "index.js",
"bin": {
"lint-staged": "index.js"
},
"scripts": {
- "postinstall": "echo \"lint-staged installed! Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md\" && exit 0",
+ "postinstall": "echo \"🚫💩 lint-staged installed! \nDo not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md\" && exit 0",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"pre-commit": "node index.js",
- "release": "npmpub",
"test": "mocha --compilers js:babel-register ./test/*.spec.js",
"deps": "npm-check -s",
- "deps:update": "npm-check -u"
+ "deps:update": "npm-check -u",
+ "semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"pre-commit": "pre-commit",
"greenkeeper": {
@@ -24,7 +23,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/okonet/lint-staged.git"
+ "url": "https://github.com/okonet/lint-staged.git"
},
"keywords": [
"lint",
@@ -69,9 +68,9 @@
"jsonlint-cli": "^1.0.1",
"mocha": "^3.1.0",
"npm-check": "^5.2.2",
- "npmpub": "^3.1.0",
"pre-commit": "^1.1.3",
"rewire": "^2.5.1",
+ "semantic-release": "^6.3.2",
"tmp": "^0.0.31"
},
"config": {

0 comments on commit 0d5a841

Please sign in to comment.