Skip to content

Commit

Permalink
chore: use release-it for releasing new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Oct 12, 2023
1 parent 1802e32 commit 7a97b20
Show file tree
Hide file tree
Showing 5 changed files with 2,383 additions and 799 deletions.
20 changes: 20 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"git": {
"commitMessage": "chore: release v${version}",
"requireBranch": "main",
"tagName": "v${version}"
},
"github": {
"release": true,
"comments": {
"submit": true
}
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md",
"header": "# Changelog"
}
}
}
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.2.0](https://github.com/birchill/discriminator/compare/v0.1.0...v0.2.0) (2022-09-20)


Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,5 @@ yarn test
### Releasing

```
yarn release
git push --follow-tags
yarn publish
yarn release-it
```
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
},
"scripts": {
"build": "tsup",
"test": "vitest run",
"prepublishOnly": "pinst --disable && tsup",
"postinstall": "husky install",
"postpublish": "pinst --enable",
"release": "standard-version",
"test": "vitest run"
"postinstall": "husky install",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,ts,md}": [
Expand All @@ -50,18 +50,19 @@
"bracketSpacing": true
},
"devDependencies": {
"@release-it/conventional-changelog": "7.0.2",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"pinst": "^3.0.0",
"prettier": "^3.0.3",
"standard-version": "^9.5.0",
"release-it": "16.2.1",
"superstruct": "^1.0.3",
"tsup": "7.2.0",
"typescript": "^5.2.2",
"vitest": "0.34.6",
"vitest-github-actions-reporter": "0.10.0"
},
"peerDependencies": {
"superstruct": ">0.16.0 < 2.0.0"
"superstruct": ">0.16.0 <2.0.0"
}
}
Loading

0 comments on commit 7a97b20

Please sign in to comment.