Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c955839

Browse files
committed
feat(release): setup semantic release, fixes #17
1 parent 4e4964d commit c955839

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

‎.travis.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
language: node_js
21
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
38
node_js:
4-
- "0.12"
9+
- '4'
10+
before_install:
11+
- npm i -g npm@^2.0.0
12+
before_script:
13+
- npm prune
14+
after_success:
15+
- npm run semantic-release
516
branches:
6-
only:
7-
- master
17+
except:
18+
- "/^v\\d+\\.\\d+\\.\\d+$/"

‎README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[![dependencies][code-snippets-dependencies-image] ][code-snippets-dependencies-url]
99
[![devdependencies][code-snippets-devdependencies-image] ][code-snippets-devdependencies-url]
1010
[![Codacy Badge][code-snippets-codacy-image] ][code-snippets-codacy-url]
11+
[![semantic-release][semantic-image] ][semantic-url]
1112

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

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

‎bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-snippets",
33
"main": "first-paint.js",
4-
"version": "0.6.0",
4+
"version": "0.0.0-semantic-release",
55
"homepage": "https://github.com/bahmutov/code-snippets",
66
"license": "MIT",
77
"ignore": [

‎package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-snippets",
33
"description": "Chrome DevTools code snippets ",
4-
"version": "0.6.0",
4+
"version": "0.0.0-semantic-release",
55
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",
66
"bugs": {
77
"url": "https://github.com/bahmutov/code-snippets/issues"
@@ -35,7 +35,8 @@
3535
"grunt-npm2bower-sync": "0.9.1",
3636
"jshint-summary": "0.4.0",
3737
"matchdep": "1.0.0",
38-
"pre-git": "3.1.2"
38+
"pre-git": "3.1.2",
39+
"semantic-release": "4.3.5"
3940
},
4041
"engines": {
4142
"node": "> 0.10.*"
@@ -59,13 +60,14 @@
5960
"main": "first-paint.js",
6061
"repository": {
6162
"type": "git",
62-
"url": "git@github.com:bahmutov/code-snippets.git"
63+
"url": "https://github.com/bahmutov/code-snippets.git"
6364
},
6465
"scripts": {
6566
"build": "grunt",
6667
"commit": "git-issues && commit-wizard",
6768
"grunt": "grunt",
6869
"issues": "git-issues",
70+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
6971
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
7072
"test": "grunt"
7173
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /