Repository navigation
v2.0.0
🚀 Features
-
⚠️ Throw aRelizyCancelErrorwhen a prompt is refused, instead of exiting the process (ac14ad2)A refused or cancelled prompt (bump confirmation, uncommitted changes, rewritten tag) now throws a
RelizyCancelErrorbefore anything is written. Hookserror:*and failed PR comments are skipped. The CLI still exits with code 0. UseisRelizyCancelError()to tell a cancellation from a real error:import { isRelizyCancelError, release } from 'relizy' try { await release() } catch (error) { if (!isRelizyCancelError(error)) { throw error } }
-
Add
title,releaseandaioptions to version groups (3393af4)A version group can set a
title, shown in the release outputs, and overriderelease.providerRelease,release.socialandai.providerRelease. For example, anindependentgroup can create its provider releases without AI. The--aiand--no-aioptions still apply to every group:export default defineConfig({ monorepo: { groups: [ { name: 'ecosystem', title: 'maz-ui', versionMode: 'selective', packages: ['packages/*'] }, { name: 'tooling', title: 'Tooling', versionMode: 'independent', packages: ['tooling/*'], ai: { providerRelease: { enabled: false } } }, ], }, })
-
⚠️ Ask for the bump confirmation once for all version groups (985a5f7)With
monorepo.groups, the bump prompt lists the packages of every group under itstitleand asks once.confirmBump()only asks,displayBump()prints a bump, and the plans ofplanBumps()exposedisplay()instead ofconfirm():const { plans } = await planBumps({ config }) await confirmBump({ packages: plans.flatMap(plan => plan.result.bumped ? plan.result.bumpedPackages : []), display: () => { for (const plan of plans) { plan.display?.() } }, dryRun: false, })
-
⚠️ AddreleaseTitle,packageListandpackageCountto the social templates (99cd9c8)Social posts are now built from a model of the release (
getReleaseOverview()), which fixes the posts ofindependentreleases.{{releaseTitle}}gives<name> <version> is out!for one version (@scope/pkg 5.1.0 is out!) andNew releases of <project>for several.{{packageList}}and{{packageCount}}work as in the commit templates.{{newVersion}}is empty when several versions are released, and every occurrence of a variable is replaced. The defaulttemplates.twitterMessageuses{{releaseTitle}}:export default defineConfig({ templates: { twitterMessage: '📣 {{releaseTitle}}\n\n{{changelog}}\n\n{{releaseUrl}}\n{{changelogUrl}}', }, })
formatTweetMessage(),postReleaseToTwitter(),formatSlackMessage()andpostReleaseToSlack()now take the templatevariablesinstead ofprojectName,version,releaseUrlandchangelogUrl:const variables = getSocialTemplateVariables({ overview: getReleaseOverview({ config, bumpResult }), releaseUrl }) formatTweetMessage({ template, changelog, postMaxLength: 280, variables })
-
⚠️ Post a release of several versions once per platform, by group (6e30ca4)With
monorepo.groups, or several packages inindependentmode, a release is announced once: one post per platform, one AI call per platform, and thesocial,twitterandslackhooks run once. The post is titledNew releases of <project>, with a section per group (itstitle), theunifiedorselectivegroup first. Twitter fills the post by priority withinpostMaxLength, keeping every group's version line. Slack shares the message budget between sections and lists the contributors once.onlyStableleaves prereleases out of the post:📣 New releases of maz-ui maz-ui 5.2.1 • mcp: label the bundled docs with their maz-ui version Tooling • @maz-ui/eslint-config 5.1.0: stop enforcing the pnpm catalog • @maz-ui/upgrade 5.2.1 -
List the packages of each version group in its own table in the PR comment (3190f36)
With several version groups released, the PR comment has one table per group, titled with its
title, version and version mode, theunifiedorselectivegroup first:### maz-ui `5.2.1` (selective) | `@maz-ui/mcp` | `5.2.0` → `5.2.1` | ### Tooling (independent) | `@maz-ui/eslint-config` | `5.0.0` → `5.1.0` | -
Pass the release to the hooks of the steps after the bump (b06146b)
Function hooks of the steps after the bump receive a third parameter with the release, when it is known (in
relizy release, among others):export default defineConfig({ hooks: { 'success:release': (config, dryRun, context) => { for (const group of context?.release.groups ?? []) { console.log(group.title, group.version) } }, }, })
-
Check the migration from relizy 1 with the MCP server (8c734b3)
The
check_migrationtool lists what to change to upgrade from relizy 1, with the file and line of each place, the fix, and the matching section of the migration guide. It covers the relizy dependency, social templates, version groups (titles, hooks, AI provider releases) and calls to the relizy API. Themigrate-to-v2prompt drives the whole migration:check_migration({ config: 'relizy' })
-
List the values of union types in
get_config_option(bfc1d4a)get_config_optionnow lists the values an option accepts when its type hides them behind an alias.bump.typeandlogLeveluseBumpReleaseTypeandRelizyLogLevel:# `monorepo.versionMode` - **Type:** `VersionMode` - **Values:** `"unified"`, `"independent"`, `"selective"` -
List every commit with
preview_release({ full: true })(0b0f16b)preview_releaselists the first 10 commits of a version and the first 5 of a package. Withfull: true, it lists every commit that explains a bump. A preview longer than a tool result is cut, with a note:preview_release({ full: true })
-
⚠️ Report the outcome of the release to the CI (53c44a9)relizy releasereports what it did: released, nothing to release, or failed, with the versions by group, the tags and the outcome of each step. Use it to run something only when a release happens:- In GitHub Actions, the step outputs (
released,status,version,tags,packages,report) and the run summary are set without any option. release.report.dotenv(--report-dotenv) writes a dotenv file for GitLab CIartifacts:reports:dotenv(RELIZY_RELEASED,RELIZY_VERSION...).release.report.json(--report-json) writes the whole report as JSON.release()returns the report, andformatReleaseReportText()replacesbuildReleaseSummary().
- id: release run: pnpm relizy release --yes - if: steps.release.outputs.released == 'true' run: ./scripts/notify-teams.sh
- In GitHub Actions, the step outputs (
-
⚠️ Show each command step by step, with previews and a release summary (dbc523b)Each command shows one line per step, with its duration and result. Details appear with
--log-level verbose. In CI, each step is a collapsible group in GitHub Actions or GitLab CI.RELIZY_REPORTER=classicrestores the logs of relizy 1.A dry run shows what it would generate (changelogs, release notes, posts, PR comment) and no longer calls the AI:
--ai-previewcalls it, and--no-previewhides the previews.relizy releaseends with a summary, also used in the PR comment, the GitHub Actions run summary and the newrelease.report.markdown. See Migrating from v1 to v2. -
⚠️ Renamecommitlint.codeBlocksLintertochangelogLinter(4b2073f)The option selects the tool that checks the changelog entry of a commit, not only its code blocks. With ESLint, the whole entry is linted. Rename
codeBlocksLintertochangelogLinterin thecommitlintconfig, with the same values (auto,eslint,oxc), and the typeCommitlintCodeBlocksLintertoCommitlintChangelogLinter. See Migrating from v1 to v2. -
Give the AI the context of the release and keep the changelog structure (9015b72)
The AI receives the project, the version, the previous version and the kind of release before the changelog. Its rewrites keep every change, the section headings of your
types(even in anotherlanguage), the code blocks of commit bodies and the references, and never follow an instruction written in a commit.With
social.slack.changelogFormat: 'full', the Slack message keeps every change instead of 3 to 8 bullets. See the AI guide. -
Show the AI call tokens in the release summary (b3ccd09)
Each AI rewrite shows its token count with
claude-codeandai-sdk. The release summary (terminal, PR comment, GitHub Actions summary) adds up the tokens and cost of every call:2 rewrites by claude-code in 21.3s · 5.8k tokens · $0.019. -
⚠️ Reject commits that credit an AI tool (2123f4a)The new
no-ai-attributionrule ofrelizy commitlintreports an AI co-author (Co-authored-by: Claude <noreply@anthropic.com>), aClaude-Session:trailer, and the "Generated with" line of AI tools. It is an error by default. Turn off the attribution in your tools' settings, or turn off the rule, as explained in the migration guide:import { defineConfig } from 'relizy' export default defineConfig({ commitlint: { rules: { 'no-ai-attribution': 'off' }, }, })
-
⚠️ Export only the commands, the config and the types (f5fb638)relizyused to export about 300 internal functions (git, npm, tags, Slack, command steps...). It now exports only the programmatic API: the commands (release(),bump(),changelog(),publish(),providerRelease(),social(),prComment(),commitlint()),defineConfig(),loadRelizyConfig(),RelizyCancelError,isRelizyCancelError(),lintCommitMessage()and the types.Replacements for the removed functions are in the migration guide:
createCommitAndTags(),pushCommitAndTags():release()with itscommit,gitTagandpushoptionsplanBumps(),confirmBump(),displayBump(),getPackages():bump(), withdryRunto previewformatTweetMessage(),postReleaseToTwitter(),formatSlackMessage(),postReleaseToSlack(),getReleaseOverview(),getSocialTemplateVariables():social(), or thereleaseparameter of a hookbuildReleaseSummary(),formatReleaseReportText(),formatReleaseReportMarkdown(): the report returned byrelease()generateChangelog(),generateMarkDown():changelog()getDefaultConfig(),mergeTypes():loadRelizyConfig(), which returns the config with its defaultsisPrerelease():prerelease()of semverinit():relizy init
// v1 const types = Object.keys(mergeTypes(relizyConfig.types, getDefaultConfig().types)) // v2 const config = await loadRelizyConfig() const types = Object.keys(config.types)
The
check_migrationtool of the MCP server lists the imports to change. -
Prepare the git clone of the CI job for the release (aa78eeb)
In CI, relizy fetches the history of a shallow clone and checks out the branch from a detached HEAD. When the job sets no git identity, the release commit and tags are made as the person who started the release, with their noreply email.
Before publishing, relizy checks that the release can be pushed, and fails with the fix otherwise. On GitLab, it pushes with
GITLAB_TOKENwhen the job token cannot. See CI/CD. -
Generate the CI release workflow with
relizy init(1bb3686)On GitHub or GitLab,
relizy initwrites the release workflow (.github/workflows/release.yml, or thereleasejob of.gitlab-ci.yml). It runs on demand with the release type, or on each push, with the permissions, the secrets of your config and the release outputs. Skip it with--no-workflow. See relizy init. -
⚠️ Renamemonorepo.includePrivatestoprivatePackages(26b4711)The option now takes named values for the private packages of the workspace:
ignore(default), orrelease(versioned and released like the other packages, never published). The flag and the command options follow:export default defineConfig({ monorepo: { // includePrivates: true, privatePackages: 'release', }, })
relizy release --private-packages release
check_migrationpoints outincludePrivatesin the config. -
⚠️ Removemonorepo.ignorePackageNames, replaced bymonorepo.ignored(798faeb)The deprecated
monorepo.ignorePackageNamesis removed. List the directories of these packages inmonorepo.ignored, as path globs matched likemonorepo.packages. A config that still sets it fails to load with the fix, rather than releasing the packages it excluded.check_migrationpoints it out first:export default defineConfig({ monorepo: { packages: ['packages/*'], // ignorePackageNames: ['@scope/legacy'], ignored: ['packages/legacy'], }, })
-
⚠️ Removepublish.token, replaced bytokens.registry(1e8eb42)publish.tokenread the same environment variables astokens.registry(RELIZY_NPM_TOKEN,NPM_TOKEN,NODE_AUTH_TOKEN). Set the registry token intokens.registry, or per registry inpublish.registries[].token.--publish-tokenand thetokenoption ofpublish()now settokens.registry, and thetokenofReleaseOptionsis only the git token:export default defineConfig({ // publish: { token: process.env.MY_NPM_TOKEN }, tokens: { registry: process.env.MY_NPM_TOKEN }, })
-
⚠️ Removerepo.token, replaced bytokens.githubandtokens.gitlab(6d6c280)repo.tokenwas a fallback fortokens.githubandtokens.gitlab, which readGITHUB_TOKEN,GH_TOKEN,GITLAB_TOKEN... by default and are set by--token. Set the provider release and PR comment token there. A PR comment on Bitbucket now says the provider is not supported, instead of asking for a GitLab token:export default defineConfig({ repo: { provider: 'gitlab', domain: 'gitlab.mycompany.com', repo: 'team/app' }, tokens: { gitlab: process.env.MY_TOKEN }, })
-
⚠️ Remove therelizy/typesentry of the package (ae17dae)The entry pointed to a declaration file, so a runtime import failed. Import the types from
relizy:// import type { RelizyConfig } from 'relizy/types' import type { RelizyConfig } from 'relizy'
-
⚠️ Remove thenewVersionandpublish.packagesoptions, which were never read (1d57afc)relizy never read the root
newVersionoption norpublish.packages. Remove them from the config. To leave a package out of the release, usemonorepo.ignored. -
⚠️ Format the changelogs written with the project's formatter (7009491)Without
changelog.formatCmd, the formatter found in the dependencies of the rootpackage.json(Biome, Prettier, oxfmt, dprint, otherwise ESLint) formats the changelogs written, and only them. If it fails, the release continues with a warning.To choose the command, set
formatCmd. Its{{files}}placeholder is replaced by the paths of the changelogs written.false(or--no-format-cmd) turns the formatting off:import { defineConfig } from 'relizy' export default defineConfig({ changelog: { formatCmd: 'eslint --fix {{files}}' }, })
-
Give the version of each released group and package in the release report (f6c17e9)
The report of
relizy releasenow hasgroup_<name>_versionfor each releasedunifiedorselectiveversion group, andpackage_<name>_versionfor each released package. They are only set when the release happens, not in dry-run. A CI job can run a step for one package without parsing the package list:script: - '[ -n "$RELIZY_PACKAGE_ACME_UI_VERSION" ] && ./scripts/notify.sh'
The dotenv file no longer has
RELIZY_INSTALL, so it can be sourced (. ./relizy.env). The install command stays in the GitHub Actions outputs, the JSON report and the summary. -
Publish to npm with trusted publishing (OIDC), without a token (f749167)
In a GitHub Actions job with the
id-token: writepermission, or a GitLab CI job with theNPM_ID_TOKENid token, relizy publishes to npmjs.org without an npm token. npm authenticates the job with OIDC and adds provenance to the packages. The safety check no longer requires a token there: it checks that the job's npm does the OIDC exchange (11.5.1 or later), and warns about packages not yet on npm, which still need a first publish with a token:permissions: contents: write id-token: write
The placeholder token that
actions/setup-nodewrites toNODE_AUTH_TOKENis no longer taken for an npm token. Without a token or OIDC in CI, the authentication error describes both ways to publish. -
Generate release workflows ready for npm trusted publishing (1643a11)
When the project publishes to npm, the workflow from
relizy initgives the job its OIDC token (id-token: writeon GitHub Actions, theNPM_ID_TOKENid token on GitLab CI) and updates npm to a version that performs the OIDC exchange. Once the trusted publisher is set up on npmjs.com, theNPM_TOKENsecret is no longer needed. It remains the fallback for the first publish of a package. The next steps ofrelizy initlink to the guide. -
Report the steps that failed without stopping the release in its outputs (c895165)
A failed social post, provider release or PR comment does not stop the release. The
failed_stepsoutput (RELIZY_FAILED_STEPSin the dotenv file) lists them, comma-separated, so a later step or job can react without reading the JSON report. -
Post the releases to Microsoft Teams (ee5bbf3)
social.teamsposts Adaptive Cards to a Teams workflow (trigger "When a Teams webhook request is received"), since Office 365 connectors are being retired. A card announces a version with a badge, a title and message, its version and date, and buttons for its release notes, changelog andlinks:export default defineConfig({ social: { teams: { enabled: true, cards: 'version', // or 'release': one card with a section per version changelog: 'summary', // the commit titles, rewritten with ai.social.teams locale: 'fr-FR', announcements: [ { group: 'shared', links: [{ title: '🎨 Storybook', url: 'https://{{shortName}}.acme.dev' }] }, { package: '@acme/login', title: '🔐 Login {{newVersion}}' }, ], exclude: { packages: ['@acme/*-mock'] }, }, }, })
Without
announcements, every version is announced. With it, only the versions of the listed groups and packages are announced, and a package entry overrides its group entry. The URL comes fromTEAMS_WEBHOOK_URL, or its base64 form inTEAMS_WEBHOOK_URL_B64(a masked GitLab variable refuses some of its characters).A refused card does not stop the release. The refusal appears in the logs, the summary and
failed_steps, and triggers the hooksbefore:teams,success:teamsanderror:teams.relizy initsets it up, andcheck_migrationpoints out scripts posting to Teams and retired connectors. -
Choose the versions announced on Slack and Twitter (cd1973a)
social.slack.announcementstakes the same entries associal.teams.announcements. Without it, every version is announced and the message is unchanged. With it, only the versions matching a{ group }or{ package }entry are announced. Thetitleof an entry replaces the name of its version, and itsmessageand links (release notes, changelog,links) appear under it, as buttons for a single version.excludeleaves groups and packages out of Slack and Twitter:export default defineConfig({ social: { slack: { enabled: true, announcements: [ { group: 'ecosystem', title: 'Design System', message: 'Update `@acme/ui` to get it.', links: [{ title: '📚 Docs', url: 'https://design.acme.dev' }] }, { package: '@acme/login', title: 'Login' }, ], exclude: { packages: ['@acme/*-mock'] }, }, twitter: { enabled: true, exclude: { groups: ['internal'] } }, }, })
check_migrationpoints to these options for scripts posting to Slack. -
⚠️ Rename the changelog option of Slack and Teams posts tochangelog(1fb6dc2)social.slack.changelogandsocial.teams.changelogtake the same values:full(commit bodies included),summary(commit titles), ornone(orfalsefor no changelog). Slack gainsnone, and Teams gainsfull. A card's changelogs share the space left by its other texts within its 28 KB limit, each cut between two changes with an… and N more changesline, instead of the card being refused:export default defineConfig({ social: { slack: { enabled: true, changelog: 'full' }, teams: { enabled: true, changelog: 'summary' }, }, })
BREAKING CHANGE:
social.slack.changelogFormatis renamedsocial.slack.changelog, with the same values. relizy 2 ignoreschangelogFormat.check_migrationfinds it. -
Release from the relizy GitHub Action and GitLab CI component (18e640d)
relizy/action@v2sets up Node.js and your package manager, installs your dependencies, runsrelizy releasewith your tokens, and passes its outputs to the next steps. On gitlab.com, thereleasecomponent of the CI/CD catalog (gitlab.com/relizy/relizy/release@2) does the same.relizy initnow writes them. See GitHub Actions and GitLab CI:- id: release uses: relizy/action@v2 with: npm-token: ${{ secrets.NPM_TOKEN }}
-
Keep an existing config in
relizy initand set up the rest (8a32fcb)When a config already exists,
relizy initoffers to keep it and set up the rest: thecommit-msghook, thereleasescript, the AI agents and the release workflow, whose secrets follow the kept config. Without questions (--yes, CI), the config is kept.--forcestill replaces it. -
⚠️ Rewrite only the stable versions with the AI (08a18d0)The AI no longer rewrites prereleases (beta, canary...). Their provider release notes and social posts keep the raw changelog, without an AI call. In a post announcing several versions, only the stable ones are rewritten.
Turn this off with
ai.onlyStable: false, or per target with its ownonlyStable:import { defineConfig } from 'relizy' export default defineConfig({ ai: { providerRelease: { enabled: true, onlyStable: false }, }, })
See the migration guide.
🔥 Performance
-
Read each git ref and range once per release (853dbef)
The branch, tags and commits of a range were read again for each package and each release step. They are now read once per command run (and per MCP tool call), and read again only after relizy's git writes (commit, tag, fetch, checkout), and after hooks, format and build commands. A dry-run release of the maz-ui monorepo (11 packages, version groups) runs 78 git processes instead of 207, and takes 7s instead of 15s.
🩹 Fixes
-
Apply the
safetyCheckoption insocial()(c91ed9a)social()ignoredsafetyCheck, soreleasechecked the social config (and the AI provider) twice, andsocial({ safetyCheck: false })still ran the check. -
Count tweet length as X does (d9f9a2c)
Every URL counts 23 characters (X shortens them to t.co links), and an emoji or CJK character counts 2. Long release and changelog URLs no longer take the space of the tweet's changelog, and a tweet with CJK text no longer exceeds the limit.
-
⚠️ Replace config arrays instead of concatenating them (f2aca2a)An array in the config replaces the default one, and an array from the config file is replaced when the value comes from the CLI or the programmatic API. Previously,
bump.dependencyTypes: ['dependencies', 'peerDependencies']resolved to['dependencies', 'peerDependencies', 'dependencies'],--dependency-types devDependenciescould only add to the config list, andrelizy releasepassed everypublish.argstwice.A
bump.dependencyTypeswithoutdependenciesno longer bumps packages on every change of theirdependencies. Adddependenciesto keep that behavior:export default defineConfig({ bump: { dependencyTypes: ['dependencies', 'peerDependencies'], }, })
-
Mask secrets without revealing their first characters (46813e0)
A masked secret keeps its known prefix and its last 4 characters, instead of its first and last 4. The first characters of secrets without a fixed prefix (Twitter keys, OAuth tokens) no longer appear in debug logs or in AI agent context. A secret URL keeps only its origin:
npm_***2Hwk ***wYv3 https://hooks.slack.com/*** -
⚠️ Exit with code 0 when there is nothing to bump (8c11e3f)relizy bumpexits with code 0 when no commit triggers a bump, asrelizy releasedoes, instead of code 1. A CI job running it no longer fails for nothing. To run something only when a release happens, use asuccess:releasehook. -
Warn only about uncommitted changes to the files a release commits (b7d53da)
With
--no-clean, uncommitted changes are kept as they are, and no longer print a warning with the rawgit status. Only changes to the files a release writes and commits (package.json,CHANGELOG.md,lerna.json) get a warning and a confirmation. Other files are listed with--log-level debug:Uncommitted changes in files the release commits: packages/core/package.json (modified) -
Tell which files are uncommitted when a release needs a clean working directory (628c29d)
The error lists the uncommitted files with what changed, instead of the raw
git status, and explains how to continue:Uncommitted changes: plans/v2.md (modified), src/new.ts (new) Commit or stash them first, or keep them with --no-clean. -
Remove the npm token from
.npmrcwhen a publish is interrupted (1c3a004)The token written to
.npmrcfor a publish, including a dry-run, stayed on disk when the run was stopped (Ctrl+C, kill, closed terminal). The.npmrcis now removed, or restored to its previous state. -
Hide git trailers of commit bodies in changelogs (6058672)
Changelog entries no longer show the trailers ending a commit body (
Co-authored-by:,Signed-off-by:,Claude-Session:,Closes #12...), nor the "Generated with" line of AI tools. The breaking change footer is kept, since it explains how to migrate. -
Stop crediting AI tools as contributors in changelogs (4eff863)
A co-author such as
Claude <noreply@anthropic.com>or the Cursor agent is no longer listed as a contributor, as bots already were. People are still credited, even when their name resembles a tool. -
Fail a CI release without
--yesinstead of exiting with code 0 (3c1be07)Without an interactive terminal, the confirmation of new versions was treated as cancelled, so the CI job succeeded without releasing anything.
relizy releaseandrelizy bumpnow fail immediately with exit code 1 and the fix: run them with--yes. -
Correct the default values of the release options in the config reference (7c8187b)
The documented defaults of
release.noVerify,clean,socialandprCommentwere the opposite of the real defaults, in the typedoc and in theget_config_optiontool of the MCP server. A test now checks every@defaultagainst the default config. -
Name the options of
loadRelizyConfigin the API docs (0f6f630)The typedoc page of
loadRelizyConfig()expanded the whole config inline (1,800 lines). Its options are now named types, exported for callers:import type { LoadRelizyConfigOptions, RelizyConfigOverrides } from 'relizy'
The README is no longer copied as the typedoc index.
-
⚠️ Remove thepublish.privateoption (acb3416)relizy never read it: private packages are never published. A config setting it no longer type-checks, and
check_migrationpoints it out:export default defineConfig({ // publish: { private: false }, removed monorepo: { privatePackages: 'release' }, // to version the private packages })
-
Release a private app without workspace packages (232b42a)
A project with a single
package.jsonmarked"private": true(an app, an API) released nothing, because its root package was skipped as private. It is now bumped, tagged and released as a library, never published. The safety check no longer asks for a registry token when no package can be published. -
Run the git and package manager checks in the project directory (9ea2e38)
The uncommitted changes check, the staging of release files, and the detection of the git provider, Yarn Berry and the default package manager now run in the config's
cwd, not the process's current directory. A release run from the programmatic API with anothercwdused to check and stage files of the wrong directory. -
Pass commit and tag messages to git without a shell (c35b9d8)
The release commit, its tags and the staging of its files run git with arguments passed as they are, not through a shell command. A
$, a backtick or a quote intemplates.commitMessage,commitBodyortagMessageused to run or break the command, and a tag message was not escaped at all. -
Skip the safety check of
relizy publishwith--no-safety-check(25aa365)relizy publishignored the global--no-safety-checkflag and still checked registry authentication.relizy release,provider-releaseandsocialalready applied it. -
Apply the config
logLevelwithout--log-level(6dd9f31)The
--log-levelflag defaulted todefaultand always replaced the config'slogLevel, even when it was not passed. The flag now applies only when given. -
Apply
bump.cleanduringrelizy release(6e82878)relizy releasereplacedbump.cleanwithrelease.clean, so a release still failed on uncommitted changes withbump: { clean: false }in the config. Uncommitted changes are now checked when both are enabled, asrelizy bumpdoes.--no-cleanstill turns off both. -
List the steps of the release in order in
preview_release(880ada2)The
preview_releasetool of the MCP server listed the commit, tags and push before publication, whilerelizy releasepublishes first. It also listed the tags and push without the release commit, which they need. -
Preview the root changelog of an independent release in
preview_changelog(cd594d3)The
preview_changelogtool of the MCP server left out the root changelog thatrelizy changelogwrites inindependentmode (the changelogs of released packages, withchangelog.rootChangelog). Both now build it the same way. -
Authenticate GitHub releases with
repo.token(3d4b2b5)A GitHub release with
repo.tokenand withouttokens.githubpassed the token check but was sent to the GitHub API without authentication. The token now falls back torepo.token, as for GitLab and the PR comment. -
Link to the current docs pages (84d2ad5)
The error for a provider release without token links to the tokens section of the config (
config/overview#tokens). Theget_doctool of the MCP server names theguide/prereleasespage, instead of pages removed from the docs. -
Pass
publish.argsto the publish command (37942a5)publish.argswas declared but never read. Its arguments are now added to the publish command of every package and registry, after relizy's own arguments, and left out of the authentication check:export default defineConfig({ publish: { args: ['--provenance'], }, })
-
Type
publish.argsof the resolved config as strings (af2518a)Its default, an empty array, was typed as
never[]in the config returned byloadRelizyConfig(). -
Read the provider of a self-hosted repository from its host (f95ea81)
A repository on a GitHub Enterprise or self-hosted GitLab host (
git@gitlab.example.com:team/app.git,https://github.mycompany.com/team/app) now gets the provider named by its host, as git provider detection does, and keeps its host as domain. Previously, an ssh URL gave the host itself as provider, and an https URL gave none. Changelog references had no links, andrelizy releasecould not create provider releases. An unknown host gives no provider. -
Use
repo.providerinrelizy provider-release(afe4189)relizy provider-releaseignored therepo.providerconfig option and detected the provider only from theoriginremote, unlikerelizy releaseand its safety check. -
Apply the config options passed to
bump(),changelog(),publish()andrelease()(2be2f56)Some options declared in their types were ignored:
capZeroMajorandoutOfRangePeersforbump(),includeCommitBodyforchangelog(),args,packageManagerandsafetyCheckTimeoutforpublish(), and all of them plusdependencyTypesandcheckWorkspaceDependenciesforrelease(). They now override the config, as the other options do:await release({ capZeroMajor: false, includeCommitBody: true, args: ['--provenance'] })
-
Exit with code 1 when
relizy provider-releaseorrelizy socialfails (706585e)Both commands reported a failed provider release or post, then exited with code
0, so a CI job running them never failed. They now exit with code1, after the other posts. Inrelizy release, a failed provider release or post still does not stop the release. -
Check out the branch of a GitHub pull request in its CI job (61bfcb4)
On a
pull_requestevent, relizy put the detached HEAD on a branch named afterGITHUB_REF_NAME(<number>/merge), so it could not find the pull request of the branch. It now uses the pull request's branch (GITHUB_HEAD_REF). -
Authenticate GitLab releases with the CI job token (815ded5)
tokens.gitlabfalls back toCI_JOB_TOKEN, but relizy sent it as a personal access token (PRIVATE-TOKEN), so GitLab refused the release. The job token is now sent in theJOB-TOKENheader. A job token cannot comment on merge requests, so the MR comment now asks to setGITLAB_TOKENinstead of failing the request. -
Create the provider releases of
relizy release --provideron that provider (50316d1)--provideronly applied to the safety check ofrelizy release. The provider releases usedrepo.provider, or the provider detected from the remote. They now use the provider given. -
Check the registry access of
relizy publishwhateverrelease.publish(d13954d)The publish safety check was skipped whenever
release.publishwasfalse, including when runningrelizy publishalone, which then published without first checking registry access. Onlyrelizy releaseskips it, when it does not publish. -
Replace every occurrence of the variables in
changelogTitleandtagBody(a2ea161)templates.changelogTitleandtemplates.tagBodyreplaced only the first occurrence of a variable, unlike the other templates. AtagBodyrepeating{{newVersion}}gave the release commit one tag name and the changelog and provider release another. They now render it the same way. -
Apply
bump.capZeroMajorto canary versions (0e2c1a8)A canary computed its version without
bump.capZeroMajor. A breaking change on0.5.2gave1.0.0-0.canary-<sha>, while the release gives0.6.0, and a breaking change in a peer dependency always gave a major. Canary versions now follow the release. -
Restore canary versions after
relizy release --canary --no-publish(53f7229)Canary versions were restored only after their publish, so without it they stayed in the
package.jsonfiles. A canary is never committed, so they are now restored in every case.relizy bump --canarystill leaves them, so you can publish them yourself. -
Reject a commitlint tuple without its rule number (87f5800)
'header-max-length': [2, 'always']set the length to'always', so the rule never reported anything.relizy commitlintnow fails with the expected form,[2, 'always', 200]or['error', 200]. -
Comment the merged pull request of a release run after the merge (8cf5dbf)
The PR comment only looked for an open pull request on the current branch, so a release run on the push to
mainafter a merge never found the pull request it merged. Without an open one, the pull request of the commit the release started from is now commented, on GitHub and GitLab, including from a detached HEAD.ReleaseContextgets this commit insha. -
Install corepack in the GitLab CI job generated by
relizy init(f2d76ea)Node 25+ no longer ships corepack, so
corepack enablefailed on thenode:ltsimage (Node 26). The generated job now installs it first, withnpm install -g corepack && corepack enable, which keeps the pnpm or yarn version pinned by thepackageManagerfield. -
Post the changelog of a Slack template in mrkdwn (9f0a11d)
With
social.slack.templateand thesummaryformat,{{changelog}}was a summary cut by sentences, in markdown: bold scopes and links arrived as**scope:**and[text](url). It is now converted to mrkdwn, as without a template, within the space the template leaves in the block. -
Summarize a post's changelog without AI by its lines (a5fec87)
Without AI, the summary of a tweet was cut by sentences: a commit ending with a period was merged with the next one, and a period was added at the end. It now keeps the first commits that fit, one per line, as they are.
-
Remove the line of an unset URL from a social post (4acda96)
A social template line holding only
{{releaseUrl}}or{{changelogUrl}}left an empty line when the URL was not set. The default tweet of anindependentrelease without a release URL had two blank lines before the changelog link. The line is now removed. -
List each package once in a Slack post of several versions (be2b788)
Without a template, the Slack post of a release of several versions listed the packages of an
independentgroup in their section, then again in the "📦 Packages" block. The block now lists only the packages the sections do not show, such as the packages of aselectivegroup. -
Return
falsefrom a dry-run PR comment without pull request (518e880)prComment({ dryRun: true })returnedtrueeven when no pull request was detected, andrelizy pr-comment --dry-runthen said it would comment. It now shows the preview and returnsfalse. -
Hide the git error of a repository without an
originremote (9320043)Resolving the repository of a project without an
originremote printederror: No such remote 'origin'on stderr, for example on eachrelizy commitlint. The lookup is now silent, like relizy's other git reads. -
Correct the JSDoc of the options and the
--publish-tokenhelp (48364b1)The
safetyCheckoptions said "Skip safety check" whiletrueruns the checks. The tokens listed their environment variables out of their reading order (RELIZY_*is read first).publish.registries[].packageFilternamed a removed option, and--publish-tokenmentioned only npm and pnpm, while bun is supported too. The JSDoc feeds the API reference and theget_config_optiontool. Long dashes in the code, logs and JSDoc are now simple dashes. -
Name the commitlint pages of the docs in the
get_doctool (25c2ff1)The description of the
get_doctool of the MCP server listedcommitlintamong the CLI pages, while the page iscommitlint/cli. Tests now check the pages it names, and that everyrelizy.devlink in the code reaches an existing page and heading. -
Publish only to the declared registries without
publish.registry(a7c9c3f)With
publish.registriesand nopublish.registry, the registry of the npm config (.npmrc) was always added as the default, so every package was also published there. Packages now go only to the declared registries. A package no entry covers goes to the npm config registry:export default defineConfig({ publish: { // @acme/* only goes to GitHub Packages, the other packages to the .npmrc registry registries: [{ registry: 'https://npm.pkg.github.com/', packageFilter: ['@acme/*'] }], }, })
-
Show the dry-run badge in the light theme of CI logs (92d4493)
The yellow background of the
DRY RUNbadge turned dark brown in the light theme of GitHub logs, hiding its black text. In CI, the badge now has fixed colors (gold background, black text), readable in GitHub and GitLab light and dark themes. -
Warn only about the push in the dry run of a pull request (45f8a9e)
The dry run of a pull request (
pull_requeston GitHub Actions, a merge request pipeline on GitLab CI) failed because its token is read-only, though the release never runs there. It now warns that the release job checks the push. Every other dry run still fails when the release cannot be pushed.The error for a refused push now says how to fix it where it runs: the
permissionsfor a GitHub Actions workflow, theGITLAB_TOKENvariable on GitLab CI, or git credentials outside CI. -
Check the registries of every publishable package before a release (a210b06)
With
publish.registriesand nopublish.registry, a package no entry covers is published to the npm config registry.relizy releasedid not check access to that registry before publishing, so a release could publish some packages and then fail on others. All registries needed by publishable packages are now checked before the bump. -
Quote the pull request branch in git commands (d3a3f91)
The branch of a GitHub pull request, named by its author, reached
git logandgit configthrough a shell. A branch such asfeat/a$(cmd), valid for git, ran its command during the pull request's release. Values that are not plain refs are now quoted. -
Report a release whose checks fail (0e1b584)
When a
relizy releasecheck failed (token, registry, push access,--yesmissing in CI), the release stopped without its report, PR comment orerror:releasehook. A failed check now writes the failed report, comments on the pull request and runserror:release, as for any other release error. -
Ignore release commits of version groups in
relizy commitlint(ff0b75e)With
monorepo.groupsand notemplates.commitMessage, release commits (chore(release): bump version to 2.0.0,chore(release): bump 3 packages) were linted like any other commit. They are now ignored, as in a project without version groups. -
Read the scopes of version groups in
relizy commitlint(b86a08a)The packages of
monorepo.groupsare now valid commit scopes, as the packages ofmonorepo.packagesare. -
Run
generate:changelogonce per package in independent mode (54d235f)With
changelog.rootChangelog, each package's changelog was generated twice inindependentmode, for its file and for the root changelog. Agenerate:changeloghook (an AI rewrite) ran twice, and the two texts could differ. Each changelog is now generated once, and the root changelog gathers them. -
Align
check_migrationwith the migration guide (783a928)The
check_migrationtool of the MCP server no longer flags thedependencyTypesof a version group, which relizy 1 accepted as is, nor functions relizy 1 never exported. It now also findsincludePrivatesin code,--include-privatein scripts,relizy releaseandrelizy bumpin a CI job without--yes, and variables repeated intemplates.changelogTitleandtemplates.tagBody. -
Warn only when a pull request's dry run is outdated (c588a39)
The dry run of a pull request no longer fails when new commits were pushed after it started. It warns that the run is outdated, since the run for the latest commit previews the release with them. The release, and dry runs outside a pull or merge request, still stop on a branch behind its remote.
-
Run the error hook of push and twitter when their before hook fails (7de320d)
A failing
before:pushorbefore:twitterhook now runserror:pushorerror:twitter, like the other steps. -
Refuse a
tagBodytemplate that repeats{{newVersion}}(5ab1026)relizy reads a repository tag's version back from the text around
{{newVersion}}intemplates.tagBody. A template repeating it, such asv{{newVersion}}-{{newVersion}}, created tags relizy could not find again, so it silently restarted from the first commit. The config now fails to load with a clear error, andcheck_migrationpoints it out first. -
Point out only the removed token lines in
check_migration(d7721ad)check_migrationflagged everytoken:line of the config forrepo.tokenandpublish.token, including tokens to keep (publish.registries[].token,social.slack.token). It now flags only thetokenkey of therepoorpublishblock, and nothing when it cannot tell. -
Check push access again in each release run of the same process (6abe906)
The push access check and the CI repository preparation were cached for the whole process. A program calling
release()several times reused the first result, so a refused push stayed refused after fixing the token or remote. They are now done once per run, like the git reads. -
Detect the CI the same way for output and checks (b3c02eb)
The CLI output and relizy's checks (prompts, CI clone, npm) read different variables:
CI=1counted as CI only for the output, and Vercel, Netlify or Jenkins only for the checks. Both now use the same detection, which accepts any value of a CI flag exceptfalseand0. -
Check the push and the branch in the dry run of a GitLab merge request (54233f6)
A merge request pipeline has no
CI_COMMIT_BRANCH, so relizy left its HEAD detached and silently skipped the push access and remote branch checks, without their warnings. It now checks out the merge request's source branch (CI_MERGE_REQUEST_SOURCE_BRANCH_NAME), as for the head branch of a GitHub pull request. -
Leave a blank line between the command typed and the CLI output (ea408d7)
-
Run the
error:socialhook when the social step itself fails (9c41eb4)relizy socialranerror:socialonly when a post failed, so an error in the step itself (reading the release, a failing hook) skipped it. It now runs the hook, like the other steps.The commands share their run (config, output, CI clone, error handling and
error:*hooks) inrunCommand().provider-releaseandsocialstill report their errors in their result, so a release continues without them. -
Name the GitHub release after its version, not
--to(25bd378)--tois the end of the commit range.relizy release --to <commit>created a GitHub release named after the commit. The release is now named after the version andtemplates.tagBody, as on GitLab. In unified mode, the version also comes from the root package when there is no bump result. -
Mark a GitHub release as a prerelease from its version (043feb3)
In unified mode, the GitHub release's prerelease flag was read from the tag. With a custom
templates.tagBody(release-{{newVersion}}), a prerelease was published as the latest stable release. The flag is now read from the version, as on GitLab and in independent mode. -
Skip the GitHub release of a package without changes (9db0c84)
In independent mode, a package without commits in its range (released with
--force) got a GitHub release holding only empty changelog text. It is now skipped with a warning, as on GitLab. -
List the GitLab releases of a dry run in independent mode (768876d)
A GitLab dry run in independent mode returned no release, so its summary said "No release to create". It now lists the releases it would create, as on GitHub.
-
Encode the package tag in release links (ad5cbc0)
Links to a package's release (
@scope/name@1.0.0) kept its/in the URL, and GitLab answered 404 to/-/releases/@scope/name@1.0.0. The tag is now a single URL segment,/-/releases/@scope%2Fname@1.0.0, on GitHub, GitLab and Bitbucket. Tags without/are unchanged. -
Keep every package of a group in the full Slack message (33164d3)
In the
fullformat, the message budget (blocks, payload,postMaxLength) was shared between groups. The first long package of anindependentgroup took its group's share, and the following packages were left out. The budget is now shared between versions, so each package keeps at least its version line. -
Ask for any access token when GitLab CI cannot push the release (7fb644a)
On the Free tier of gitlab.com, project access tokens require Premium. The error for a refused push now asks for an access token with the
write_repositoryandapiscopes (a personal token on the Free tier), or for the job token's push. -
Frame the release plan, previews and summary like
relizy init(0e3fe69) -
Title the columns of the release summary table (fa5f49b)
-
Show the social posts skipped for a prerelease in the release summary (1e5437c)
A platform that posts nothing (a prerelease with
onlyStable, or no version left to announce) is no longer shown as posted. The release summary, PR comment and GitHub Actions run summary now sayskipped (twitter: prerelease), andSocialNetworkResult.skippedgives the reason. -
Skip the AI checks of a prerelease bump with
onlyStable(b29d361)A release with
--prerelease,--prepatch,--preminoror--premajorno longer checks the AI provider (credentials,claudeCLI) for targets withonlyStable, since their AI never runs. A beta job no longer needs to install theclaudeCLI. -
Skip the safety checks of steps that do nothing in the release (eca5cb0)
A release no longer fails over steps it will not use: the credentials of a social platform that leaves out prereleases (
onlyStable) in a prerelease-only release, the AI of a platform that posts nothing, and the token or AI of provider releases and social posts when every version group disables them (release: { providerRelease: false },release: { social: false }).relizy socialandrelizy provider-releaserun alone also skip these checks when all the versions they announce are prereleases. -
Explain why a release cannot be pushed, and report a branch behind its remote as such (3f50e48)
A branch behind its remote no longer fails the release as if git credentials could not push. The branch check reports how many commits are missing, with the fix:
git pull --rebaselocally, or run the job again in CI.When git really refuses the push, the error shows why (permission denied, protected branch, unreachable host...), without the remote's credentials.
💅 Refactors
-
Read the last tag of the repository from the cached tag list (c3dff38)
Tag lookups using shell pipes (
git tag | grep | head) are removed. They served only code paths no package could reach, since every package has a version. The last tag used byrelizy commitlintand the MCP server now comes from the cached tag list. -
Remove the dead package selection of
relizy publish(60c17a1)Its fallbacks by version mode ran only without a package, so they always published nothing.
-
Stop reading the packages in
planBumpsfor a debug log (9d96fe8)The bump read every package of the project only to log their count.
-
Remove the unread
maxLengthof AI requests (d8d39ee)The length budget reaches the model through its prompt. No provider read the field.
-
Remove the unused options of the release PR comment (d94573a)
The comment posted by
relizy releaseuses its config. The log level and config name options were never read. -
Remove the dead functions and internal-only exports (67e23d7)
parseChangelogMarkdown(),parseGitRemoteUrl()andextractVersionFromPackageTag()were never called. About thirty functions and constants were exported without being imported elsewhere. None of them is in the public API listed bysrc/index.ts. -
Share the text helpers of the outputs (fe83e3b)
The pluralized counts, durations, UTC dates, release names and summary entries were written several times across the terminal output, report, PR comment, commitlint and AI. Each now has one helper.
-
Iterate version groups in a release step with
getReleaseTargets(3767f27) -
Apply overrides to a resolved config without loading the config file again (3e952cf)
A command given a resolved config (
releasepasses its own to its steps, orloadRelizyConfig()in a script) no longer reloads the config file and the.envfile. Overrides are merged over it, as for version group configs. A command that changes its config still leaves the given one untouched. -
Move the display and confirmation of a bump to
bump-confirm.ts(52d277c) -
Split
npm.tsinto registries, published versions and publication (c02725d) -
Split
createCommitAndTagsinto staging, commit message and tags (66d1b63) -
Move the planning of bumps from
repo.tstobump-plan.ts(9a8d4fa) -
Run git through a single module without a shell (cbb4c26)
git-exec.tsruns git withexecFile: arguments are passed as an array, without a shell, so a branch, tag, path or commit message is passed as is, without escaping. It replaces the copies ofgit()andtryGit()(ci.ts,commitlint/git.ts,ci-workflow.ts,git.ts) and theexecSyncandexecPromisegit command strings.shell.tsis removed. Git's stderr is captured and included in the error when git fails, instead of being written to the terminal. -
Share the flow of GitHub and GitLab releases (6810d4c)
github.tsandgitlab.tsrepeated the tags, notes (changelog, AI), empty-release check, dry-run preview and summary, in unified and independent modes.postProviderReleases()inprovider-releases.tsnow runs this flow once. Each provider is aReleaseProvideradapter that checks its config and creates a release.
📖 Documentation
-
Add the migration guide from v1 to v2 (8064cb6)
Explains what changes in relizy 2 and how to upgrade: version groups released as one release, social templates (
{{releaseTitle}},{{newVersion}}with several versions), and the programmatic API (RelizyCancelError,confirmBump, social functions). Listed in the "Guide" menu, the version menu and the sidebar. -
Explain how to run something only when a release happens (4013d48)
-
Redesign the homepage (39f13ed)
The homepage shows an animated terminal playing a release, a dry run and a GitHub Actions run, then the steps of a release and the features, each linked to its docs page. The docs follow a maz-ui theme preset with Relizy's colors, and Tailwind for custom pages.
-
Rewrite the documentation for relizy 2 (3253dea)
One page per topic, checked against the code, going from 16,000 to 6,600 lines. Guides explain, while the config, CLI and API pages are exact references with every option and flag:
guide/getting-startedabsorbsguide/installationand starts fromrelizy initguide/prereleasesmerges the canary and prerelease guidesguide/social-mediamerges the Twitter and Slack guidesconfig/overviewabsorbsconfig/multiple-configsand lists the tokenscommitlint/indexabsorbscommitlint/getting-started- the CI guides follow the workflow generated by
relizy init - new
api/commitlintpage, README rewritten for v2
-
List the fixes of relizy 2 in the migration guide (4ead599)
Also removes the claim that
relizy releasepassedpublish.argstwice, since they never reached the publish command. -
Generate
llms.txtfor AI assistants (2263d91)The docs publish
llms.txt(the index of pages with their descriptions),llms-full.txt(all the docs in one markdown file) and a.mdfile per page, so AI assistants can read the docs without running the site. -
Name every template in the migration entry for replaced variables (cd004a1)
-
Update the contributing guide (ec7fd01)
Covers Node and pnpm versions, git hooks as they run, the commit types and scopes of the repository, specs next to the code, the docs checks, the no-ai-attribution rule, and how to add an AI provider (moved here from the user docs).
-
Complete the fixes and exit codes in the migration guide (3931bb3)
-
Update the README illustration (647e2ed)
-
Keep the 404 page out of search engines (e1c4771)
The 404 page also answered with a 200 at
/404, with a canonical pointing to itself andindex, follow, so search engines could index it. It now has anoindexand no canonical. -
Point the canonical URL of index pages to their served URL (03992eb)
commitlint/index.mddeclaredhttps://relizy.dev/commitlint/indexas canonical URL, which redirects to/commitlint/. Index pages now declare the URL they are served at. -
Link the breadcrumbs of pages to existing pages (3a8b2d1)
Each page's BreadcrumbList linked its section to
/guide,/config,/clior/api, which return 404, and named the page after its slug. The section now links to its first page, and the page is named after its title. -
Keep the typedoc reference out of search engines (cc85e3e)
The 124 typedoc reference pages were indexable with the site's description, outside the sitemap, and overlapped the API section pages. They now have a
noindex. They remain in the docs and inllms-full.txt. -
Cache the hashed docs assets for a year (9b7ff48)
Cloudflare Pages served
/assetsfiles withmax-age=14400andmust-revalidate. Their names hold a hash of their content, so a_headersfile now caches them for a year asimmutable. -
Serve the header logo from the docs (728ace2)
The header logo loaded from raw.githubusercontent.com, adding a connection on each visit. The same
logo.svgis now in the docs' public files. -
Give the command pages and homepage searchable titles (597f878)
Command pages were titled "bump | Relizy", "init | Relizy", and the changelog page shared its title with another page. They are now titled "relizy bump command | Relizy", the changelog page "Changelog | Relizy", and the homepage starts with the name: "Relizy - Release automation for monorepos and packages".
-
Describe the API pages and the changelog page in full (200eecc)
Their descriptions, shown in search results, llms.txt and at the top of API pages, were 25 to 54 characters long. They now say what each function does and returns.
-
Stop repeating the site head in each page (34e6f26)
transformHeadreturned the site head with the page's tags, and VitePress adds what it returns to that head. Each page had its JSON-LD WebSite and SoftwareApplication, its favicon and its font preload twice. -
Drop the changefreq and priority of the sitemap (fc61776)
Every page was "daily" with priority 1, values search engines ignore. The sitemap keeps each page's
lastmod, read from git. -
Drop the published time of pages (4e0749d)
article:published_timeheld the date of the last update, likearticle:modified_time. Pages keep their modified time. -
Give Relizy's version, license and repository to search engines (af05e25)
The docs' JSON-LD SoftwareApplication now has
softwareVersion, the license, and the GitHub and npm pages of Relizy (sameAs). -
Give long pages a shorter description for search results (9974946)
21 pages had descriptions of 161 to 251 characters, which search results cut. Their
metaDescription, at most 155 characters, now feeds the meta, og and twitter descriptions. The page, llms.txt and the MCP docs keep the full description. -
Correct the migration guide of relizy 2 (6c59769)
-
Correct the documentation against the code (a1f05a9)
-
Update plans (eafff08)
-
Update plans (aaa1976)
-
Update plans (36f16e5)
-
Update plans (d4d46dd)
-
Update plans (af35044)
-
Run a CI step only when a release happens, from the report (3a6b480)
-
Add the guide to npm trusted publishing (23f5fcb)
-
Point to version groups for a root version next to independent packages (b4750d9)
-
Show the Microsoft Teams posts on the homepage (2e3dc99)
-
Use the relizy illustration as the social preview image (d7dbb89)
-
Add maz-ui translations (37a7408)
-
Fix the build of the GitHub Actions guide (8894546)
📦 Build
- deps: Remove
@maz-ui/upgradefrom the docs (1db29ea) - deps: Accept minor versions of
@maz-ui/nodeand@maz-ui/utils(f6b8375) - deps: Update the
aiversion (b70d391)
🧪 Tests
-
Give the slow git tests more time (fb6421b)
-
Type the cancelled prompts in tests (a756f4f)
-
Confirm the bump in the release e2e tests (1ca1d6f)
The release now fails without
--yeswhen the terminal is not interactive, as in vitest workers. -
Check that the docs name every CLI flag and config option (269a2fb)
A flag of
src/cli.tsmissing from its command's page (the global ones fromcli/commands), or a config option missing from its doc page, now failsknowledge.spec.ts, as an undocumented command already did. -
Search the prereleases page of the docs (c421e2a)
Canary releases and prerelease versioning are now documented on one page,
guide/prereleases. -
Check the order of the release steps (bae9d3c)
The test named after the order only checked that each step ran, and its e2e twin pushed the names in a fixed order, so neither could fail.
-
Stop loading the source code in the vitest config (d386bf7)
-
Pass the init and release report tests in CI (04fd1a5)
-
Check the push of a dry run outside a pull request in CI (c779dd6)
-
Check the links between doc pages (5dbf050)
-
Replace the release e2e specs with a unit test (ecf91a8)
The
tests/e2especs mocked everything exceptrelease.ts, and covered only the remote branch check with publish disabled and push enabled. That case is now tested inrelease.spec.ts. -
Toggle the interactive terminal with
setInteractiveTerminal(0233a0e) -
Create temporary git repositories with a shared helper (7a5a41d)
-
Share the commit and version group config factories (6a1fae2)
-
Ignore the OIDC token of the CI job running the tests (caa6a7e)
-
Split the slow specs so vitest runs them in parallel (44f313f)
The release-groups specs are split across three files sharing their repository (
tests/release-groups.ts). Slack message fixtures are formatted once per scenario, and the commitlint CLI tests joincli.spec.ts. -
Ignore the colors of init notes in CI (a5e27e4)
-
Keep the release reports of the tests out of the CI summary (b8552d0)
⚠️ Breaking Changes
-
⚠️ Throw aRelizyCancelErrorwhen a prompt is refused, instead of exiting the process (ac14ad2)A refused or cancelled prompt (bump confirmation, uncommitted changes, rewritten tag) now throws a
RelizyCancelErrorbefore anything is written. Hookserror:*and failed PR comments are skipped. The CLI still exits with code 0. UseisRelizyCancelError()to tell a cancellation from a real error:import { isRelizyCancelError, release } from 'relizy' try { await release() } catch (error) { if (!isRelizyCancelError(error)) { throw error } }
-
⚠️ Ask for the bump confirmation once for all version groups (985a5f7)With
monorepo.groups, the bump prompt lists the packages of every group under itstitleand asks once.confirmBump()only asks,displayBump()prints a bump, and the plans ofplanBumps()exposedisplay()instead ofconfirm():const { plans } = await planBumps({ config }) await confirmBump({ packages: plans.flatMap(plan => plan.result.bumped ? plan.result.bumpedPackages : []), display: () => { for (const plan of plans) { plan.display?.() } }, dryRun: false, })
-
⚠️ AddreleaseTitle,packageListandpackageCountto the social templates (99cd9c8)Social posts are now built from a model of the release (
getReleaseOverview()), which fixes the posts ofindependentreleases.{{releaseTitle}}gives<name> <version> is out!for one version (@scope/pkg 5.1.0 is out!) andNew releases of <project>for several.{{packageList}}and{{packageCount}}work as in the commit templates.{{newVersion}}is empty when several versions are released, and every occurrence of a variable is replaced. The defaulttemplates.twitterMessageuses{{releaseTitle}}:export default defineConfig({ templates: { twitterMessage: '📣 {{releaseTitle}}\n\n{{changelog}}\n\n{{releaseUrl}}\n{{changelogUrl}}', }, })
formatTweetMessage(),postReleaseToTwitter(),formatSlackMessage()andpostReleaseToSlack()now take the templatevariablesinstead ofprojectName,version,releaseUrlandchangelogUrl:const variables = getSocialTemplateVariables({ overview: getReleaseOverview({ config, bumpResult }), releaseUrl }) formatTweetMessage({ template, changelog, postMaxLength: 280, variables })
-
⚠️ Post a release of several versions once per platform, by group (6e30ca4)With
monorepo.groups, or several packages inindependentmode, a release is announced once: one post per platform, one AI call per platform, and thesocial,twitterandslackhooks run once. The post is titledNew releases of <project>, with a section per group (itstitle), theunifiedorselectivegroup first. Twitter fills the post by priority withinpostMaxLength, keeping every group's version line. Slack shares the message budget between sections and lists the contributors once.onlyStableleaves prereleases out of the post:📣 New releases of maz-ui maz-ui 5.2.1 • mcp: label the bundled docs with their maz-ui version Tooling • @maz-ui/eslint-config 5.1.0: stop enforcing the pnpm catalog • @maz-ui/upgrade 5.2.1 -
⚠️ Report the outcome of the release to the CI (53c44a9)relizy releasereports what it did: released, nothing to release, or failed, with the versions by group, the tags and the outcome of each step. Use it to run something only when a release happens:- In GitHub Actions, the step outputs (
released,status,version,tags,packages,report) and the run summary are set without any option. release.report.dotenv(--report-dotenv) writes a dotenv file for GitLab CIartifacts:reports:dotenv(RELIZY_RELEASED,RELIZY_VERSION...).release.report.json(--report-json) writes the whole report as JSON.release()returns the report, andformatReleaseReportText()replacesbuildReleaseSummary().
- id: release run: pnpm relizy release --yes - if: steps.release.outputs.released == 'true' run: ./scripts/notify-teams.sh
- In GitHub Actions, the step outputs (
-
⚠️ Show each command step by step, with previews and a release summary (dbc523b)Each command shows one line per step, with its duration and result. Details appear with
--log-level verbose. In CI, each step is a collapsible group in GitHub Actions or GitLab CI.RELIZY_REPORTER=classicrestores the logs of relizy 1.A dry run shows what it would generate (changelogs, release notes, posts, PR comment) and no longer calls the AI:
--ai-previewcalls it, and--no-previewhides the previews.relizy releaseends with a summary, also used in the PR comment, the GitHub Actions run summary and the newrelease.report.markdown. See Migrating from v1 to v2. -
⚠️ Renamecommitlint.codeBlocksLintertochangelogLinter(4b2073f)The option selects the tool that checks the changelog entry of a commit, not only its code blocks. With ESLint, the whole entry is linted. Rename
codeBlocksLintertochangelogLinterin thecommitlintconfig, with the same values (auto,eslint,oxc), and the typeCommitlintCodeBlocksLintertoCommitlintChangelogLinter. See Migrating from v1 to v2. -
⚠️ Reject commits that credit an AI tool (2123f4a)The new
no-ai-attributionrule ofrelizy commitlintreports an AI co-author (Co-authored-by: Claude <noreply@anthropic.com>), aClaude-Session:trailer, and the "Generated with" line of AI tools. It is an error by default. Turn off the attribution in your tools' settings, or turn off the rule, as explained in the migration guide:import { defineConfig } from 'relizy' export default defineConfig({ commitlint: { rules: { 'no-ai-attribution': 'off' }, }, })
-
⚠️ Export only the commands, the config and the types (f5fb638)relizyused to export about 300 internal functions (git, npm, tags, Slack, command steps...). It now exports only the programmatic API: the commands (release(),bump(),changelog(),publish(),providerRelease(),social(),prComment(),commitlint()),defineConfig(),loadRelizyConfig(),RelizyCancelError,isRelizyCancelError(),lintCommitMessage()and the types.Replacements for the removed functions are in the migration guide:
createCommitAndTags(),pushCommitAndTags():release()with itscommit,gitTagandpushoptionsplanBumps(),confirmBump(),displayBump(),getPackages():bump(), withdryRunto previewformatTweetMessage(),postReleaseToTwitter(),formatSlackMessage(),postReleaseToSlack(),getReleaseOverview(),getSocialTemplateVariables():social(), or thereleaseparameter of a hookbuildReleaseSummary(),formatReleaseReportText(),formatReleaseReportMarkdown(): the report returned byrelease()generateChangelog(),generateMarkDown():changelog()getDefaultConfig(),mergeTypes():loadRelizyConfig(), which returns the config with its defaultsisPrerelease():prerelease()of semverinit():relizy init
// v1 const types = Object.keys(mergeTypes(relizyConfig.types, getDefaultConfig().types)) // v2 const config = await loadRelizyConfig() const types = Object.keys(config.types)
The
check_migrationtool of the MCP server lists the imports to change. -
⚠️ Renamemonorepo.includePrivatestoprivatePackages(26b4711)The option now takes named values for the private packages of the workspace:
ignore(default), orrelease(versioned and released like the other packages, never published). The flag and the command options follow:export default defineConfig({ monorepo: { // includePrivates: true, privatePackages: 'release', }, })
relizy release --private-packages release
check_migrationpoints outincludePrivatesin the config. -
⚠️ Removemonorepo.ignorePackageNames, replaced bymonorepo.ignored(798faeb)The deprecated
monorepo.ignorePackageNamesis removed. List the directories of these packages inmonorepo.ignored, as path globs matched likemonorepo.packages. A config that still sets it fails to load with the fix, rather than releasing the packages it excluded.check_migrationpoints it out first:export default defineConfig({ monorepo: { packages: ['packages/*'], // ignorePackageNames: ['@scope/legacy'], ignored: ['packages/legacy'], }, })
-
⚠️ Removepublish.token, replaced bytokens.registry(1e8eb42)publish.tokenread the same environment variables astokens.registry(RELIZY_NPM_TOKEN,NPM_TOKEN,NODE_AUTH_TOKEN). Set the registry token intokens.registry, or per registry inpublish.registries[].token.--publish-tokenand thetokenoption ofpublish()now settokens.registry, and thetokenofReleaseOptionsis only the git token:export default defineConfig({ // publish: { token: process.env.MY_NPM_TOKEN }, tokens: { registry: process.env.MY_NPM_TOKEN }, })
-
⚠️ Removerepo.token, replaced bytokens.githubandtokens.gitlab(6d6c280)repo.tokenwas a fallback fortokens.githubandtokens.gitlab, which readGITHUB_TOKEN,GH_TOKEN,GITLAB_TOKEN... by default and are set by--token. Set the provider release and PR comment token there. A PR comment on Bitbucket now says the provider is not supported, instead of asking for a GitLab token:export default defineConfig({ repo: { provider: 'gitlab', domain: 'gitlab.mycompany.com', repo: 'team/app' }, tokens: { gitlab: process.env.MY_TOKEN }, })
-
⚠️ Remove therelizy/typesentry of the package (ae17dae)The entry pointed to a declaration file, so a runtime import failed. Import the types from
relizy:// import type { RelizyConfig } from 'relizy/types' import type { RelizyConfig } from 'relizy'
-
⚠️ Remove thenewVersionandpublish.packagesoptions, which were never read (1d57afc)relizy never read the root
newVersionoption norpublish.packages. Remove them from the config. To leave a package out of the release, usemonorepo.ignored. -
⚠️ Format the changelogs written with the project's formatter (7009491)Without
changelog.formatCmd, the formatter found in the dependencies of the rootpackage.json(Biome, Prettier, oxfmt, dprint, otherwise ESLint) formats the changelogs written, and only them. If it fails, the release continues with a warning.To choose the command, set
formatCmd. Its{{files}}placeholder is replaced by the paths of the changelogs written.false(or--no-format-cmd) turns the formatting off:import { defineConfig } from 'relizy' export default defineConfig({ changelog: { formatCmd: 'eslint --fix {{files}}' }, })
-
⚠️ Name the changelog of Slack and Teams postschangelog(1fb6dc2)social.slack.changelogandsocial.teams.changelogtake the same values:full(commit bodies included),summary(commit titles), ornone(orfalsefor no changelog). Slack gainsnone, and Teams gainsfull. A card's changelogs share the space left by its other texts within its 28 KB limit, each cut between two changes with an… and N more changesline, instead of the card being refused:export default defineConfig({ social: { slack: { enabled: true, changelog: 'full' }, teams: { enabled: true, changelog: 'summary' }, }, })
BREAKING CHANGE:
social.slack.changelogFormatis renamedsocial.slack.changelog, with the same values. relizy 2 ignoreschangelogFormat.check_migrationfinds it. -
⚠️ Rewrite only the stable versions with the AI (08a18d0)The AI no longer rewrites prereleases (beta, canary...). Their provider release notes and social posts keep the raw changelog, without an AI call. In a post announcing several versions, only the stable ones are rewritten.
Turn this off with
ai.onlyStable: false, or per target with its ownonlyStable:import { defineConfig } from 'relizy' export default defineConfig({ ai: { providerRelease: { enabled: true, onlyStable: false }, }, })
See the migration guide.
-
⚠️ Replace config arrays instead of concatenating them (f2aca2a)An array in the config replaces the default one, and an array from the config file is replaced when the value comes from the CLI or the programmatic API. Previously,
bump.dependencyTypes: ['dependencies', 'peerDependencies']resolved to['dependencies', 'peerDependencies', 'dependencies'],--dependency-types devDependenciescould only add to the config list, andrelizy releasepassed everypublish.argstwice.A
bump.dependencyTypeswithoutdependenciesno longer bumps packages on every change of theirdependencies. Adddependenciesto keep that behavior:export default defineConfig({ bump: { dependencyTypes: ['dependencies', 'peerDependencies'], }, })
-
⚠️ Exit with code 0 when there is nothing to bump (8c11e3f)relizy bumpexits with code 0 when no commit triggers a bump, asrelizy releasedoes, instead of code 1. A CI job running it no longer fails for nothing. To run something only when a release happens, use asuccess:releasehook. -
⚠️ Remove thepublish.privateoption (acb3416)relizy never read it: private packages are never published. A config setting it no longer type-checks, and
check_migrationpoints it out:export default defineConfig({ // publish: { private: false }, removed monorepo: { privatePackages: 'release' }, // to version the private packages })
❤️ Contributors
- LouisMazel (@LouisMazel)