Skip to content

Commit 9305100

Browse files
committed
feat(ci): setup semantic release
1 parent ae96199 commit 9305100

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
5+
notifications:
6+
email: false
7+
node_js:
8+
- '7'
9+
- '6'
10+
- '4'
11+
before_script:
12+
- npm prune
13+
after_success:
14+
- npm run semantic-release
15+
branches:
16+
except:
17+
- /^v\d+\.\d+\.\d+$/

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
> Rebuilds node-sass but only if needed
44
5+
[![Build status][ci-image] ][ci-url]
6+
[![semantic-release][semantic-image] ][semantic-url]
7+
58
## Testing
69

710
To execute in a different environment, for example when working on Mac, we
@@ -27,3 +30,8 @@ Testing binary
2730
Binary is fine
2831
node-sass@4.5.3 /src/node_modules/node-sass
2932
```
33+
34+
[ci-image]: https://travis-ci.org/bahmutov/rebuild-node-sass.svg?branch=master
35+
[ci-url]: https://travis-ci.org/bahmutov/rebuild-node-sass
36+
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
37+
[semantic-url]: https://github.com/semantic-release/semantic-release

package.json

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
{
22
"name": "rebuild-node-sass",
3-
"version": "1.0.0",
3+
"version": "0.0.0-development",
44
"description": "Rebuilds node-sass but only if needed",
55
"main": "index.js",
66
"bin": {
77
"rebuild-node-sass": "./rebuild.sh"
88
},
99
"scripts": {
10-
"test": "./rebuild.sh"
10+
"test": "./rebuild.sh",
11+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1112
},
12-
"files": ["rebuild.sh"],
13-
"keywords": ["sass", "node-sass", "util"],
13+
"files": [
14+
"rebuild.sh"
15+
],
16+
"keywords": [
17+
"sass",
18+
"node-sass",
19+
"util"
20+
],
1421
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",
1522
"license": "ISC",
1623
"devDependencies": {
17-
"node-sass": "^4.5.3"
24+
"node-sass": "^4.5.3",
25+
"semantic-release": "^6.3.6"
26+
},
27+
"repository": {
28+
"type": "git",
29+
"url": "https://github.com/bahmutov/rebuild-node-sass.git"
1830
}
1931
}

0 commit comments

Comments
 (0)