@brillout/release-me v0.4.5
@brillout/release-me
Publish your npm packages.
Used by:
!WARNING Don't use this: it's only meant for Vike's team & friends. That said, feel free to fork this project.
Features
- Generates
CHANGELOG.md. - Supports monorepos.
- Generates Git release tags.
- Pre-release support. (For example
0.4.177-commit-ff3d6cd.) - Asks for confirmation before publishing and shows a preview of the changes made to
package.jsonandCHANGELOG.md, enabling you to double check before publishing.
Installation
Get started
Run $ pnpm -D @brillout/release-me and make sure you have the following:
// package.json
{
"name": "my-package",
"version": "0.1.2",
"scripts": {
"build": "echo 'Some build step (release-me runs the build script before releasing)'"
},
"devDependencies": {
"@brillout/release-me": "^0.4.0"
}
}That's it: you can now use pnpm exec release-me patch to release a new patch version.
We recommend adding the following scripts:
// package.json
{
"name": "my-package",
"version": "0.1.2",
"scripts": {
"build": "echo 'Some build step (release-me runs the build script before releasing)'"
+ "release": "release-me patch",
+ "release:minor": "release-me minor",
+ "release:major": "release-me major",
+ "release:commit": "release-me commit"
},
"devDependencies": {
"@brillout/release-me": "^0.4.0"
}
}It's a convenient way to communicate how new versions are released to anyone who's discovering your project.
Installation example: 8ff59fe.
A CHANGELOG.md file will be automatically generated and updated, see the following section.
Conventional Commits
For proper CHANGELOG.md generation make sure to follow Conventional Commits.
In other words:
fix:=> bug fix or some polishing (e.g. improved error message).feat:=> new feature, i.e. new functionality.
For breaking changes append BREAKING CHANGE: to the commit message:
fix: make someFunction() take an argument object
BREAKING CHANGE: Replace `someFunction(someArg)` with `someFunction({ someArg })`.!NOTE When introducing a breaking change, in order to respect the semver convention, don't
pnpm exec release-me patchbut dopnpm exec release-me majorinstead (orpnpm exec release-me minorif your package's version is0.y.z).
Usage
Release a new patch/minor/major version:
pnpm exec release-me patchpnpm exec release-me minorpnpm exec release-me major!NOTE We recommend defining
package.json#scripts(see above) and use$ pnpm runinstead of$ pnpm exec.
Release specific version:
pnpm exec release-me v0.1.2You can also publish pre-releases such as 0.4.177-commit-ff3d6cd:
pnpm exec release-me commit5 months ago
5 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago