Skip to content

Commit

Permalink
feat: add releasing tool
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesytim committed Jan 17, 2022
1 parent 730a6f1 commit 3c5872d
Show file tree
Hide file tree
Showing 3 changed files with 1,453 additions and 29 deletions.
15 changes: 15 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true,
"web": true
},
"npm": {
"publish": true
},
"hooks": {
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
}
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"scripts": {
"prettier": "prettier --check --ignore-unknown '**/*'",
"prettier:fix": "prettier --write --ignore-unknown '**/*'",
"prepare": "husky install"
"prepare": "husky install",
"release": "release-it"
},
"peerDependencies": {
"prettier": "^2.5.1"
Expand All @@ -18,7 +19,8 @@
"@commitlint/config-conventional": "^16.0.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.7",
"prettier": "^2.5.1"
"prettier": "^2.5.1",
"release-it": "^14.12.3"
},
"description": "A Prettier config we use for our projects",
"repository": {
Expand Down
Loading

0 comments on commit 3c5872d

Please sign in to comment.