Skip to content

Commit d47b99e

Browse files
author
Philipp Alferov
committed
Feat(module): Add semantic-release
1 parent 1d0c259 commit d47b99e

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

.travis.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +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-
- "0.10"
4-
- "0.12"
5-
- "stable"
6-
git:
7-
depth: 10
9+
- 'stable'
10+
- '0.12'
11+
- '0.10'
12+
before_install:
13+
- npm i -g npm@^2.0.0
14+
before_script:
15+
- npm prune
16+
- 'curl -Lo travis_after_all.py https://git.io/vLSON'
17+
after_success:
18+
- python travis_after_all.py
19+
- export $(cat .to_export_back)
20+
- npm run semantic-release
21+
branches:
22+
except:
23+
- "/^v\\d+\\.\\d+\\.\\d+$/"

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"name": "array-to-tree",
3-
"version": "2.1.5",
43
"description": "Convert a plain array of nodes (with pointers to parent nodes) to a tree",
54
"main": "index.js",
65
"scripts": {
76
"test": "mocha --reporter nyan",
8-
"tdd": "npm test -- --watch"
7+
"tdd": "npm test -- --watch",
8+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/alferov/array-to-tree.git"
913
},
10-
"repository": "alferov/array-to-tree",
1114
"keywords": [
1215
"array",
1316
"list",

0 commit comments

Comments
 (0)