# @justia/releaser

> A script to generate releases and changelog

Latest version **2.2.1** (published 2026-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @justia/releaser
pnpm add @justia/releaser
yarn add @justia/releaser
bun add @justia/releaser
```

Provides the command `jReleaser`.

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2026-04-13 |
| First published | 2020-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 10 |
| Unpacked size | 53.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alonso Zuniga <alonso.zuniga@justia.com> |
| Maintainers | justiauser, mayrop, digznav |
| Keywords | justia, release, changelog, internal, tool, github, action |

## Links

- npm: https://www.npmjs.com/package/@justia/releaser
- Repository: https://github.com/justia/front-end-projects
- Homepage: https://github.com/justia/front-end-projects/tree/master/packages/releaser#readme
- Issues: https://github.com/justia/front-end-projects/issues
- npm.io page: https://npm.io/package/@justia/releaser

## Dependencies (10)

- [yaml](https://npm.io/package/yaml.md) ^2.0.1
- [calver](https://npm.io/package/calver.md) ~21.1.5
- [type-fest](https://npm.io/package/type-fest.md) ^2.12.2
- [release-it](https://npm.io/package/release-it.md) ^14.14.3
- [@actions/core](https://npm.io/package/@actions/core.md) ^1.10.0
- [@actions/exec](https://npm.io/package/@actions/exec.md) ^1.1.1
- [@actions/github](https://npm.io/package/@actions/github.md) ^5.0.1
- [conventional-recommended-bump](https://npm.io/package/conventional-recommended-bump.md) ^6.1.0
- [@release-it/conventional-changelog](https://npm.io/package/@release-it/conventional-changelog.md) ^4.3.0
- [@octokit/plugin-rest-endpoint-methods](https://npm.io/package/@octokit/plugin-rest-endpoint-methods.md) ^5.13.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.2.1 (latest) — 2026-04-13
- 2.2.0 — 2026-03-04
- 2.1.1 — 2026-01-05
- 2.1.0 — 2026-01-05
- 2.0.4 — 2024-07-17
- 2.0.3 — 2023-02-15
- 2.0.2 — 2023-02-09
- 2.0.1 — 2022-11-28
- 2.0.0 — 2022-05-31
- 1.3.11 — 2022-05-25
- 1.3.10 — 2022-05-12
- 1.3.5 — 2021-08-06
- 1.3.4 — 2021-04-29
- 1.3.3 — 2021-03-19
- 1.3.2 — 2021-01-29
- … 4 more at https://npm.io/package/@justia/releaser/versions

## README

<!-- UPDATE-PACKAGES:START - Do not remove or modify this section -->

# `@justia/releaser` ![version 2.2.1](https://img.shields.io/badge/version-2.2.1-blue?style=flat-square) <!-- omit from toc -->

> A script to generate releases and changelog

<!-- UPDATE-PACKAGES:END -->

## General

This project bundles [Release It!](https://github.com/release-it/release-it), [@release-it/conventional-changelog](https://github.com/release-it/conventional-changelog), and custom plugins. It exposes a pre-configured JavaScript object that can be overriden as needed depending on the needs of the project.

## How?

### Install

Into project: `npm install -D @justia/releaser`

Globally: `npm install -g @justia/releaser`

### Use

If you have this project installed globally you can use the following commands:

#### Run a release

`jReleaser`

#### Run a with calendar versioning

`jReleaser --calver=YYYY.MM.MICRO`

The format is optional.

#### Run a with a custom config

You can extend the configuration using the config parameter.

`jReleaser --config='{"github":{"release":false}}'`

#### NPM Scripts

To avoid having to install the global package, you can also add npm scripts to your `package.json`'s npm `scripts: {}` object.

For example:

```json
    "release": "jReleaser"
```

### Use Config Only

If you want to skip using the tool, and instead use `release-it` as intended, you can do that too.

Add a file called `release-it.js` to your project root, with the following contents:

```javascript
'use strict';

const config = require('@justia/releaser');

module.exports = {
   plugins: config.plugins,
   git: config.git,
   gitHub: config.gitHub,
   npm: config.npm,
};
```

You can [configure the above](https://www.npmjs.com/package/release-it#configuration) as necessary to suit your project.

You can now run `jReleaser` commands, passing our config:

`jReleaser --config='release-it.js'`

### Local Dry Run (No Changelog Writes)

Use this when you want to test release flow locally without publishing, tagging, pushing, or writing `CHANGELOG.md`.

1. Complete the setup in the repository [README](../../README.md), including login/auth steps and running install from repository root (`npm install`).

2. From repository root, create a local dry-run config:

```bash
cat >/tmp/releaser-dryrun-no-changelog.json <<'JSON'
{"dryRun":true,"ci":true,"git":{"push":false,"tag":false,"requireUpstream":false,"requireCleanWorkingDir":false,"requireCommits":false,"changelog":false},"github":{"release":false},"npm":false,"justia":{"baseBranch":"master","headBranch":"master","useVersionBranch":false}}
JSON
```

3. Run with increment type (from repository root):

```bash
GITHUB_TOKEN=dry-run-token node packages/releaser/cli/index.js --debug --increment=minor --config="$(cat /tmp/releaser-dryrun-no-changelog.json)"
```

4. Run with exact target version (from repository root):

```bash
GITHUB_TOKEN=dry-run-token node packages/releaser/cli/index.js --debug --increment=2.14.0 --config="$(cat /tmp/releaser-dryrun-no-changelog.json)"
```

Notes:
- `dryRun: true` prevents release side effects.
- `git.changelog: false` disables changelog generation and avoids writing `CHANGELOG.md`.
- Use a dummy token locally (`GITHUB_TOKEN=dry-run-token`).
- No additional local dependency install is required if root setup was completed.

# Publish new version

The first step to publish a new version it's running the commands specified on [CONTRIBUTING.md in the Release section](https://github.com/justia/front-end-projects/blob/develop/CONTRIBUTING.md#release).
Once the version it's published on NPM by lerna, the new release should be updated on the [ga-releaser](https://github.com/justia/ga-releaser) repository with the next simple steps:

1. Update the version in the `package.json` file.
2. Update the `package-lock.json` file.
3. Merge changes to the [release](https://github.com/justia/ga-releaser/tree/release) branch.
4. Wait until the GitHub action updates the node_modules inside that branch and the release it's ready.

Once those steps are done, the GitHub action will be reflected and applied for all the projects.

---
_Source: https://npm.io/package/@justia/releaser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
