Skip to content

Commit 1803110

Browse files
committed
build: add semantic release
1 parent 180d508 commit 1803110

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.travis.yml

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

README.md

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

33
Converts SVG DOM node <> Frame Shape.
44

5-
**Only 2.7kb gzipped.**
5+
**Only 2.8kb gzipped.**
66

77
Firstly, let's define a *Frame Shape*. A Frame Shape is an object
88
commonly used internally within

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"rollup-plugin-node-resolve": "^3.0.0",
9393
"rollup-plugin-replace": "^1.1.1",
9494
"rollup-plugin-uglify": "^2.0.1",
95+
"semantic-release": "^6.3.6",
9596
"snazzy": "^7.0.0",
9697
"standard": "^10.0.2"
9798
},
@@ -112,6 +113,8 @@
112113
"commit": "git-cz",
113114
"fix": "standard --fix",
114115
"lint": "standard --verbose | snazzy",
116+
"prepublish": "npm run tidy && npm run build",
117+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
115118
"tidy": "rimraf modules cjs dist"
116119
},
117120
"version": "0.0.0-development"

0 commit comments

Comments
 (0)