@brillout/release-me

中文文档
0.4.19发布于 2026/10/05MITES Module近 30 天下载 3.8万

Publish your npm packages.

原始使用文档
文档目录6 节
  1. Features
  2. Get started
  3. Installation
  4. Conventional Commits
  5. Usage
  6. Monorepo

@brillout/release-me

Publish your npm packages.

Used by:

Features
Get started
Usage
Monorepo

[!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.
  • Monorepo support.
  • 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.json and CHANGELOG.md, enabling you to double check before publishing.

Get started

Installation

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 patch but do pnpm exec release-me major instead (or pnpm exec release-me minor if your package's version is 0.y.z).


Usage

Release a new patch/minor/major version:

pnpm exec release-me patch
pnpm exec release-me minor
pnpm exec release-me major

[!NOTE] We recommend defining package.json#scripts (see above) and use $ pnpm run instead of $ pnpm exec.

Release specific version:

pnpm exec release-me v0.1.2

You can also publish pre-releases such as 0.4.177-commit-ff3d6cd:

pnpm exec release-me commit

Monorepo

When releasing a package from a monorepo, the following commits are added to the CHANGELOG.md of the package:

  • If the commit has a scope (e.g. fix(some-package): some commit), it is included only if the scope matches the package's package.json#name.
  • If the commit has no scope (e.g. fix: some commit), it is included only if it modifies a file within the package's root directory (i.e. the directory where the package's package.json lives).

[!NOTE] By default, CHANGELOG.md lives at the package's directory ($packageRootDir/CHANGELOG.md), except if the repository has only one package and CHANGELOG.md already exists at $monorepoRootDir/CHANGELOG.md.

版本与发布记录

@brillout/release-me 共发布 61 个版本,首次发布于 2022/09/02;过去 12 个月发布了 11 个版本。

版本发布日期距今
0.4.19latest2026/10/051 个月前
0.4.182026/09/161 个月前
0.4.172026/09/161 个月前
0.4.162026/06/284 个月前
0.4.152026/04/206 个月前
0.4.142026/04/206 个月前

关于 @brillout/release-me 的常见问题

@brillout/release-me 是什么?

Publish your npm packages.

如何安装 @brillout/release-me?

在项目目录运行 npm install @brillout/release-me,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 release-me,可以用 npx release-me 直接运行。

@brillout/release-me 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/brillout__release-me 是否存在。

@brillout/release-me 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@brillout/release-me 可以商用吗?

@brillout/release-me 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@brillout/release-me 的下载量有多少?

根据 npm 官方下载统计,@brillout/release-me 在 2026/10/09 – 2026/11/07 这 30 天内被下载 37,714 次,日均约 1,257 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@brillout/release-me 还在维护吗?

最新版本 0.4.19 发布于 2026/10/05(1 个月前);至今共发布 61 个版本,其中过去 12 个月发布了 11 个;首次发布于 2022/09/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。