Skip to content

Commit

Permalink
Build: Add semantic release and commitizen
Browse files Browse the repository at this point in the history
For automatic releases we need semantic release and to have consitent commit messages we also use
commitizen as tool
  • Loading branch information
markusguenther committed Jul 14, 2020
1 parent f0a5573 commit d2b83f0
Show file tree
Hide file tree
Showing 5 changed files with 5,774 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
33 changes: 33 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"branch": "release",
"analyzeCommits": {
"preset": "eslint",
"releaseRules": [
{"tag": "Upgrade", "release": "patch"}
]
},
"verifyConditions": [
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md",
"changelogTitle": "Changelog Unikka/FilePreviews"
},
"@semantic-release/github"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": ["package.json", "CHANGELOG.md"],
"message": "Build: Release ${nextRelease.version} [skip ci]"
}
],
"generateNotes": {
"preset": "eslint",
"writerOpts": {
"commitsSort": ["subject", "scope"],
}
},
"publish": ["@semantic-release/github"]
}
Empty file added CHANGELOG.md
Empty file.
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "unikka-filepreview",
"version": "1.0.1",
"repository": "https://github.com/Unikka/FilePreviews.git",
"license": "GNU GPLv3",
"dependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0",
"semantic-release": "semantic-release",
"commit": "git-cz"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/release-notes-generator": "^9.0.1",
"commitizen": "^4.1.2",
"conventional-changelog-eslint": "^3.0.8",
"cz-adapter-eslint": "^0.3.0",
"semantic-release": "^17.0.8"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-adapter-eslint"
}
}
}

0 comments on commit d2b83f0

Please sign in to comment.