Skip to content

Commit

Permalink
build(semantic-release): set up automatic publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 committed Feb 25, 2017
1 parent 87db252 commit 94a176e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
# whitelist
branches:
only:
- master
- es6
node_js:
- iojs
- '7'
- '6'
- '4'
before_script:
- npm prune
before_install:
- npm i -g grunt-cli
- npm i -g npm@^2.0.0
- npm i -g rollup
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "embed-js",
"version": "4.1.15",
"version": "0.0.0-development",
"description": "A JavaScript plugin that analyses the string and embeds emojis, media, tweets, code and services.",
"keywords": [
"JavaScript-plugin",
Expand Down Expand Up @@ -85,14 +85,16 @@
"rollup-plugin-commonjs": "^7.0.0",
"rollup-plugin-filesize": "^1.0.1",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-uglify": "^1.0.1"
"rollup-plugin-uglify": "^1.0.1",
"semantic-release": "^6.3.2"
},
"scripts": {
"commit": "git-cz",
"lint": "eslint src/js/**/*.js",
"lintfix": "eslint --fix src/js/**/*.js",
"test": "ava test/**/*.test.js --require babel-register",
"build": "rollup -c rollup.umd.config.js && rollup.es2015.config.js"
"build": "rollup -c rollup.umd.config.js && rollup.es2015.config.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 94a176e

Please sign in to comment.