Skip to content

Commit

Permalink
build: Enabled semantic release (lint-staged#111)
Browse files Browse the repository at this point in the history
* 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
okonet authored Dec 14, 2016
1 parent a74135d commit 0d5a841
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
27 changes: 20 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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+$/
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 0d5a841

Please sign in to comment.