Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@brillout/release-me

brillout9.4kMIT0.4.5TypeScript support: included

Publish your npm packages.

readme

@brillout/release-me

Publish your npm packages.

Used by:

Features
Installation
Usage

[!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.json and CHANGELOG.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 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

changelog

0.4.5 (2025-05-25)

Bug Fixes

  • @brillout/picocolors@^1.0.26 (c291a77)
  • @brillout/picocolors@^1.0.28 (5c19baf)

0.4.4 (2025-05-25)

Bug Fixes

  • conventional-changelog@^7.0.2 (8802b4a)

Features

0.4.3 (2024-12-25)

Bug Fixes

0.4.2 (2024-09-17)

Bug Fixes

  • add flag pnpm publish --no-git-checks (197902c)

0.4.1 (2024-09-09)

Bug Fixes

0.4.0 (2024-07-25)

Bug Fixes

  • only replace PROJECT_VERSION inside package files (5a3721a)
  • update PROJECT_VERSION inside PROJECT_VERSION.ts instead of (6f59842)

BREAKING CHANGES

  • rename projectInfo.ts to PROJECT_VERSION.ts

0.3.10 (2024-07-25)

Bug Fixes

  • improve PROJECT_VERSION handling (4bd7dd2)

0.3.9 (2024-05-28)

Bug Fixes

0.3.8 (2024-05-27)

Bug Fixes

  • also clean git tag (04094fc)
  • also clean upon error (734c75a)
  • avoid infinite clean loop (230db97)
  • fix error catch (db16061)
  • fix release reverting (0786cb2)
  • improve err msg (29c987e)
  • only revert if there are uncommitted changes (062c285)
  • use more reliable origin/main check (3fa1829)

0.3.7 (2024-04-24)

Bug Fixes

0.3.6 (2024-04-24)

Bug Fixes

0.3.5 (2024-04-24)

Bug Fixes

0.3.4 (2024-04-23)

Bug Fixes

  • re-enable empty release commits (872f979)

0.3.3 (2024-04-23)

Bug Fixes

0.3.2 (2024-04-23)

Bug Fixes

  • swallow git fetch "error" (08c8611)

0.3.1 (2024-04-23)

Bug Fixes

  • CHANGELOG.md path (1d6dc10)
  • fix monorepo analysis (97239b3)
  • improve analysis log (f9b3347)
  • improve err msg (f4bd1b8)
  • minor err msg improvement (f5fab4f)
  • use git ls-files instead of pnpm-workspace.yaml (6ed5e1d)

0.3.0 (2024-04-22)

Bug Fixes

Features

  • remove --git-tag-prefix arg; automatically determine it (dec181a)

BREAKING CHANGES

  • remove superfluous/unused CLI arguments

0.2.4 (2024-04-22)

Bug Fixes

0.2.3 (2024-04-22)

Bug Fixes

  • clean upon error or ctrl-c (e1b84b5)
  • log analysis result (9cc50ee)
  • show CHANGELOG.md content upon creating (3bfb168)