Skip to content

Commit

Permalink
feat(release): setup semantic release, fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Feb 29, 2016
1 parent 4e4964d commit c955839
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
19 changes: 15 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
language: node_js
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "0.12"
- '4'
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
only:
- master
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
[![dependencies][code-snippets-dependencies-image] ][code-snippets-dependencies-url]
[![devdependencies][code-snippets-devdependencies-image] ][code-snippets-devdependencies-url]
[![Codacy Badge][code-snippets-codacy-image] ][code-snippets-codacy-url]
[![semantic-release][semantic-image] ][semantic-url]

[code-snippets-icon]: https://nodei.co/npm/code-snippets.png?downloads=true
[code-snippets-url]: https://npmjs.org/package/code-snippets
Expand All @@ -19,6 +20,8 @@
[code-snippets-devdependencies-url]: https://david-dm.org/bahmutov/code-snippets#info=devDependencies
[code-snippets-codacy-image]: https://www.codacy.com/project/badge/99acaf40b1f1483c80016eb31fbaef49
[code-snippets-codacy-url]: https://www.codacy.com/public/bahmutov/code-snippets.git
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-url]: https://github.com/semantic-release/semantic-release

![fist paint](https://raw.githubusercontent.com/bahmutov/code-snippets/master/first-paint-code-snippet.png)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "code-snippets",
"main": "first-paint.js",
"version": "0.6.0",
"version": "0.0.0-semantic-release",
"homepage": "https://github.com/bahmutov/code-snippets",
"license": "MIT",
"ignore": [
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "code-snippets",
"description": "Chrome DevTools code snippets ",
"version": "0.6.0",
"version": "0.0.0-semantic-release",
"author": "Gleb Bahmutov <[email protected]>",
"bugs": {
"url": "https://github.com/bahmutov/code-snippets/issues"
Expand Down Expand Up @@ -35,7 +35,8 @@
"grunt-npm2bower-sync": "0.9.1",
"jshint-summary": "0.4.0",
"matchdep": "1.0.0",
"pre-git": "3.1.2"
"pre-git": "3.1.2",
"semantic-release": "4.3.5"
},
"engines": {
"node": "> 0.10.*"
Expand All @@ -59,13 +60,14 @@
"main": "first-paint.js",
"repository": {
"type": "git",
"url": "git@github.com:bahmutov/code-snippets.git"
"url": "https://github.com/bahmutov/code-snippets.git"
},
"scripts": {
"build": "grunt",
"commit": "git-issues && commit-wizard",
"grunt": "grunt",
"issues": "git-issues",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
"test": "grunt"
}
Expand Down

0 comments on commit c955839

Please sign in to comment.