Skip to content

Commit

Permalink
devDependencies: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Dec 17, 2020
1 parent ff48b82 commit e89c4be
Show file tree
Hide file tree
Showing 3 changed files with 5,299 additions and 194 deletions.
55 changes: 55 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"branches": "master",
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "build", "section": "Build System" },
{ "type": "initial", "section": "Initial" },
{ "type": "dependencies", "section": "Dependencies" },
{ "type": "peerDependencies", "section": "Peer dependencies" },
{ "type": "devDependencies", "section": "Dev dependencies" },
{ "type": "metadata", "section": "Metadata" },
{ "type": "docs", "section": "Documentation", "hidden": true },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
]
},
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "docs", "scope": "readme", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
]
}
],
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", { "changelogTitle": "# Changelog" }],
"@semantic-release/npm",
["@semantic-release/exec", { "prepareCmd": "npm run docs:build" }],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json", "package-lock.json", "docs"],
"message": "chore(release): ${nextRelease.version} [skip ci]"
}
]
]
}

0 comments on commit e89c4be

Please sign in to comment.