Skip to content

Commit c3e34ec

Browse files
committed
feat: use semantic-release
1 parent 2dc4b3e commit c3e34ec

3 files changed

Lines changed: 29 additions & 6 deletions

File tree

.travis.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1+
sudo: false
12
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
28
node_js:
3-
- 4
4-
- 5
5-
- 6
9+
- '4'
10+
- '5'
11+
- '6'
12+
before_install:
13+
- npm i -g npm@^2.0.0
14+
before_script:
15+
- npm prune
16+
after_success:
17+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
18+
- python travis_after_all.py
19+
- export $(cat .to_export_back) &> /dev/null
20+
- npm run semantic-release
21+
branches:
22+
except:
23+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "snappy-msgpack-stream",
3-
"version": "1.0.6",
43
"description": "Streams of framed Snappy-compressed MessagePack messages",
54
"main": "index.js",
65
"scripts": {
7-
"test": "standard && tape test.js"
6+
"test": "standard && tape test.js",
7+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
88
},
99
"dependencies": {
1010
"bops": "^1.0.0",
@@ -23,10 +23,14 @@
2323
"license": "MIT",
2424
"devDependencies": {
2525
"standard": "^8.0.0",
26-
"tape": "^4.6.0"
26+
"tape": "^4.6.0",
27+
"semantic-release": "^4.3.5"
2728
},
2829
"repository": {
2930
"type": "git",
3031
"url": "https://github.com/KlausTrainer/snappy-msgpack-stream.git"
32+
},
33+
"release": {
34+
"branch": "main"
3135
}
3236
}

readme.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/KlausTrainer/snappy-msgpack-stream.svg?branch=main)](https://travis-ci.org/KlausTrainer/snappy-msgpack-stream)
44
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
5+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
56

67
Streams of framed [Snappy](https://google.github.io/snappy/)-compressed [MessagePack](http://msgpack.org/) messages..
78

0 commit comments

Comments
 (0)