Skip to content

Commit

Permalink
feat(semantic-release): add semantic-release
Browse files Browse the repository at this point in the history
add semantic-release
add `yarn release` script
add @semantic-release/commit-analyzer
add @semantic-release/release-notes-generator
add @semantic-release/changelog config
add @semantic-release/npm
add @semantic-release/git config

fix #16

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Jun 18, 2022
1 parent cea557a commit 4ac01d9
Show file tree
Hide file tree
Showing 3 changed files with 2,328 additions and 42 deletions.
21 changes: 21 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"lint:fix": "eslint --fix src/**/*",
"pretty": "prettier --check .",
"pretty:fix": "prettier --write .",
"lint-staged": "lint-staged"
"lint-staged": "lint-staged",
"release": "semantic-release --branches main"
},
"lint-staged": {
"src/*.{ts,tsx}": [
Expand All @@ -43,6 +44,8 @@
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"cz-conventional-changelog": "3.3.0",
Expand All @@ -52,6 +55,7 @@
"husky": "^8.0.0",
"lint-staged": "^13.0.2",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"typescript": "^4.7.3"
},
"husky": {
Expand Down
Loading

0 comments on commit 4ac01d9

Please sign in to comment.