Skip to content

Commit

Permalink
feat: update release config (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsyirvo authored Dec 11, 2021
1 parent 344adbd commit cc0d8ff
Show file tree
Hide file tree
Showing 4 changed files with 338 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Custom ESLint config for my React Native projects",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,9 +39,17 @@
"typescript": ">= 4.5"
},
"devDependencies": {
"@commitlint/cli": "15.0.0",
"@commitlint/config-conventional": "15.0.0",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"husky": "7.0.4",
"semantic-release": "18.0.1",
"semantic-release-cli": "5.4.4"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
12 changes: 11 additions & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
module.exports = {
branches: ['master'],
plugins: [
'@semantic-release/commit-analyzer',
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'chore', release: 'patch' },
{ scope: 'no-release', release: false },
],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/npm',
'@semantic-release/github',
Expand Down
Loading

0 comments on commit cc0d8ff

Please sign in to comment.