Skip to content

Commit

Permalink
feat: Add semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sospedra committed Dec 27, 2015
1 parent 44136bc commit 576c36b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
29 changes: 28 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
language: node_js
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '4'
- iojs-v3
- iojs-v2
- iojs-v1
- '0.12'
- '0.10'
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
script:
- npm test
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: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "logatim",
"version": "1.0.0",
"description": "Isomorphic logger which implements log levels and ANSI styles",
"main": "dist/logatim.umd.min.js",
"scripts": {
"start": "node index.js",
"test": "tape test/test-*.js",
"build": "node ./node_modules/webpack/bin/webpack.js -p"
"build": "node ./node_modules/webpack/bin/webpack.js -p",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"author": {
"name": "Rubén Sospedra",
Expand All @@ -22,6 +22,11 @@
"babel-loader": "^6.2.0",
"babel-preset-es2015": "^6.3.13",
"parallel-webpack": "^1.0.0",
"webpack": "^1.12.9"
"webpack": "^1.12.9",
"semantic-release": "^4.3.5"
},
"repository": {
"type": "git",
"url": "https://github.com/edravis/logatim.git"
}
}

0 comments on commit 576c36b

Please sign in to comment.