Skip to content

Commit

Permalink
chore(release): added semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDuarteM committed Jul 31, 2018
1 parent e7b4cde commit d55378d
Show file tree
Hide file tree
Showing 6 changed files with 850 additions and 23 deletions.
1 change: 1 addition & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./src/config/releaserc")
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ language: node_js
cache:
directories:
- node_modules
- ~/.npm
node_js:
- 'node'
- 'lts/*'
- '8'
script: yarn ci
after_success: yarn release
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-scripts",
"version": "0.1.13",
"version": "0.0.0-development",
"main": "index.js",
"author": "Gabriel Duarte <[email protected]> (https://github.com/GabrielDuarteM/)",
"license": "MIT",
Expand All @@ -12,7 +12,8 @@
"lint": "ts-node src lint",
"test": "ts-node src test",
"typecheck": "ts-node src typecheck",
"ci": "ts-node src ci"
"ci": "ts-node src ci",
"release": "semantic-release"
},
"bin": {
"gd-scripts": "build/index.js"
Expand Down Expand Up @@ -74,6 +75,7 @@
"@types/rimraf": "^2.0.2",
"@types/which": "^1.3.1",
"eslint-plugin-import": "^2.13.0",
"semantic-release": "^15.9.2",
"ts-node": "^7.0.0"
}
}
1 change: 1 addition & 0 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module.exports = {
babel: require("./babelrc"),
eslint: require("./eslintrc"),
prettier: require("./prettierrc"),
release: require("./releaserc"),
}
11 changes: 11 additions & 0 deletions src/config/releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
analyzeCommits: {
releaseRules: [
{
type: "docs",
scope: "README",
release: "patch",
},
],
},
}
Loading

0 comments on commit d55378d

Please sign in to comment.