Skip to content

v2.0.0

Choose a tag to compare

@LouisMazel LouisMazel released this 06 Nov 20:37
· 192 commits to develop since this release

compare changes

🚀 Features

  • ⚠️ Throw a RelizyCancelError when a prompt is refused, instead of exiting the process (ac14ad2)

    A refused or cancelled prompt (bump confirmation, uncommitted changes, rewritten tag) now throws a RelizyCancelError before anything is written. Hooks error:* and failed PR comments are skipped. The CLI still exits with code 0. Use isRelizyCancelError() 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, release and ai options to version groups (3393af4)

    A version group can set a title, shown in the release outputs, and override release.providerRelease, release.social and ai.providerRelease. For example, an independent group can create its provider releases without AI. The --ai and --no-ai options 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 its title and asks once. confirmBump() only asks, displayBump() prints a bump, and the plans of planBumps() expose display() instead of confirm():

    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,
    })
  • ⚠️ Add releaseTitle, packageList and packageCount to the social templates (99cd9c8)

    Social posts are now built from a model of the release (getReleaseOverview()), which fixes the posts of independent releases. {{releaseTitle}} gives <name> <version> is out! for one version (@scope/pkg 5.1.0 is out!) and New 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 default templates.twitterMessage uses {{releaseTitle}}:

    export default defineConfig({
      templates: {
        twitterMessage: '📣 {{releaseTitle}}\n\n{{changelog}}\n\n{{releaseUrl}}\n{{changelogUrl}}',
      },
    })

    formatTweetMessage(), postReleaseToTwitter(), formatSlackMessage() and postReleaseToSlack() now take the template variables instead of projectName, version, releaseUrl and changelogUrl:

    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 in independent mode, a release is announced once: one post per platform, one AI call per platform, and the social, twitter and slack hooks run once. The post is titled New releases of <project>, with a section per group (its title), the unified or selective group first. Twitter fills the post by priority within postMaxLength, keeping every group's version line. Slack shares the message budget between sections and lists the contributors once. onlyStable leaves 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, the unified or selective group 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_migration tool 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. The migrate-to-v2 prompt drives the whole migration:

    check_migration({ config: 'relizy' })
  • List the values of union types in get_config_option (bfc1d4a)

    get_config_option now lists the values an option accepts when its type hides them behind an alias. bump.type and logLevel use BumpReleaseType and RelizyLogLevel:

    # `monorepo.versionMode`
    
    - **Type:** `VersionMode`
    - **Values:** `"unified"`, `"independent"`, `"selective"`
    
  • List every commit with preview_release({ full: true }) (0b0f16b)

    preview_release lists the first 10 commits of a version and the first 5 of a package. With full: 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 release reports 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 CI artifacts:reports:dotenv (RELIZY_RELEASED, RELIZY_VERSION...).
    • release.report.json (--report-json) writes the whole report as JSON.
    • release() returns the report, and formatReleaseReportText() replaces buildReleaseSummary().
    - id: release
      run: pnpm relizy release --yes
    - if: steps.release.outputs.released == 'true'
      run: ./scripts/notify-teams.sh
  • ⚠️ 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=classic restores 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-preview calls it, and --no-preview hides the previews.

    relizy release ends with a summary, also used in the PR comment, the GitHub Actions run summary and the new release.report.markdown. See Migrating from v1 to v2.

  • ⚠️ Rename commitlint.codeBlocksLinter to changelogLinter (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 codeBlocksLinter to changelogLinter in the commitlint config, with the same values (auto, eslint, oxc), and the type CommitlintCodeBlocksLinter to CommitlintChangelogLinter. 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 another language), 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-code and ai-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-attribution rule of relizy commitlint reports an AI co-author (Co-authored-by: Claude <noreply@anthropic.com>), a Claude-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)

    relizy used 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 its commit, gitTag and push options
    • planBumps(), confirmBump(), displayBump(), getPackages(): bump(), with dryRun to preview
    • formatTweetMessage(), postReleaseToTwitter(), formatSlackMessage(), postReleaseToSlack(), getReleaseOverview(), getSocialTemplateVariables(): social(), or the release parameter of a hook
    • buildReleaseSummary(), formatReleaseReportText(), formatReleaseReportMarkdown(): the report returned by release()
    • generateChangelog(), generateMarkDown(): changelog()
    • getDefaultConfig(), mergeTypes(): loadRelizyConfig(), which returns the config with its defaults
    • isPrerelease(): prerelease() of semver
    • init(): 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_migration tool 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_TOKEN when the job token cannot. See CI/CD.

  • Generate the CI release workflow with relizy init (1bb3686)

    On GitHub or GitLab, relizy init writes the release workflow (.github/workflows/release.yml, or the release job 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.

  • ⚠️ Rename monorepo.includePrivates to privatePackages (26b4711)

    The option now takes named values for the private packages of the workspace: ignore (default), or release (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_migration points out includePrivates in the config.

  • ⚠️ Remove monorepo.ignorePackageNames, replaced by monorepo.ignored (798faeb)

    The deprecated monorepo.ignorePackageNames is removed. List the directories of these packages in monorepo.ignored, as path globs matched like monorepo.packages. A config that still sets it fails to load with the fix, rather than releasing the packages it excluded. check_migration points it out first:

    export default defineConfig({
      monorepo: {
        packages: ['packages/*'],
        // ignorePackageNames: ['@scope/legacy'],
        ignored: ['packages/legacy'],
      },
    })
  • ⚠️ Remove publish.token, replaced by tokens.registry (1e8eb42)

    publish.token read the same environment variables as tokens.registry (RELIZY_NPM_TOKEN, NPM_TOKEN, NODE_AUTH_TOKEN). Set the registry token in tokens.registry, or per registry in publish.registries[].token. --publish-token and the token option of publish() now set tokens.registry, and the token of ReleaseOptions is only the git token:

    export default defineConfig({
      // publish: { token: process.env.MY_NPM_TOKEN },
      tokens: { registry: process.env.MY_NPM_TOKEN },
    })
  • ⚠️ Remove repo.token, replaced by tokens.github and tokens.gitlab (6d6c280)

    repo.token was a fallback for tokens.github and tokens.gitlab, which read GITHUB_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 the relizy/types entry 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 the newVersion and publish.packages options, which were never read (1d57afc)

    relizy never read the root newVersion option nor publish.packages. Remove them from the config. To leave a package out of the release, use monorepo.ignored.

  • ⚠️ Format the changelogs written with the project's formatter (7009491)

    Without changelog.formatCmd, the formatter found in the dependencies of the root package.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 release now has group_<name>_version for each released unified or selective version group, and package_<name>_version for 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: write permission, or a GitLab CI job with the NPM_ID_TOKEN id 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-node writes to NODE_AUTH_TOKEN is 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 init gives the job its OIDC token (id-token: write on GitHub Actions, the NPM_ID_TOKEN id 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, the NPM_TOKEN secret is no longer needed. It remains the fallback for the first publish of a package. The next steps of relizy init link 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_steps output (RELIZY_FAILED_STEPS in 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.teams posts 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 and links:

    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 from TEAMS_WEBHOOK_URL, or its base64 form in TEAMS_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 hooks before:teams, success:teams and error:teams. relizy init sets it up, and check_migration points out scripts posting to Teams and retired connectors.

  • Choose the versions announced on Slack and Twitter (cd1973a)

    social.slack.announcements takes the same entries as social.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. The title of an entry replaces the name of its version, and its message and links (release notes, changelog, links) appear under it, as buttons for a single version. exclude leaves 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_migration points to these options for scripts posting to Slack.

  • ⚠️ Rename the changelog option of Slack and Teams posts to changelog (1fb6dc2)

    social.slack.changelog and social.teams.changelog take the same values: full (commit bodies included), summary (commit titles), or none (or false for no changelog). Slack gains none, and Teams gains full. 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 changes line, instead of the card being refused:

    export default defineConfig({
      social: {
        slack: { enabled: true, changelog: 'full' },
        teams: { enabled: true, changelog: 'summary' },
      },
    })

    BREAKING CHANGE: social.slack.changelogFormat is renamed social.slack.changelog, with the same values. relizy 2 ignores changelogFormat. check_migration finds it.

  • Release from the relizy GitHub Action and GitLab CI component (18e640d)

    relizy/action@v2 sets up Node.js and your package manager, installs your dependencies, runs relizy release with your tokens, and passes its outputs to the next steps. On gitlab.com, the release component of the CI/CD catalog (gitlab.com/relizy/relizy/release@2) does the same. relizy init now 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 init and set up the rest (8a32fcb)

    When a config already exists, relizy init offers to keep it and set up the rest: the commit-msg hook, the release script, the AI agents and the release workflow, whose secrets follow the kept config. Without questions (--yes, CI), the config is kept. --force still 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 own onlyStable:

    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 safetyCheck option in social() (c91ed9a)

    social() ignored safetyCheck, so release checked the social config (and the AI provider) twice, and social({ 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 devDependencies could only add to the config list, and relizy release passed every publish.args twice.

    A bump.dependencyTypes without dependencies no longer bumps packages on every change of their dependencies. Add dependencies to 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 bump exits with code 0 when no commit triggers a bump, as relizy release does, instead of code 1. A CI job running it no longer fails for nothing. To run something only when a release happens, use a success:release hook.

  • 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 raw git 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 .npmrc when a publish is interrupted (1c3a004)

    The token written to .npmrc for a publish, including a dry-run, stayed on disk when the run was stopped (Ctrl+C, kill, closed terminal). The .npmrc is 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 --yes instead 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 release and relizy bump now 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, social and prComment were the opposite of the real defaults, in the typedoc and in the get_config_option tool of the MCP server. A test now checks every @default against the default config.

  • Name the options of loadRelizyConfig in 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 the publish.private option (acb3416)

    relizy never read it: private packages are never published. A config setting it no longer type-checks, and check_migration points 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.json marked "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 another cwd used 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 in templates.commitMessage, commitBody or tagMessage used to run or break the command, and a tag message was not escaped at all.

  • Skip the safety check of relizy publish with --no-safety-check (25aa365)

    relizy publish ignored the global --no-safety-check flag and still checked registry authentication. relizy release, provider-release and social already applied it.

  • Apply the config logLevel without --log-level (6dd9f31)

    The --log-level flag defaulted to default and always replaced the config's logLevel, even when it was not passed. The flag now applies only when given.

  • Apply bump.clean during relizy release (6e82878)

    relizy release replaced bump.clean with release.clean, so a release still failed on uncommitted changes with bump: { clean: false } in the config. Uncommitted changes are now checked when both are enabled, as relizy bump does. --no-clean still turns off both.

  • List the steps of the release in order in preview_release (880ada2)

    The preview_release tool of the MCP server listed the commit, tags and push before publication, while relizy release publishes 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_changelog tool of the MCP server left out the root changelog that relizy changelog writes in independent mode (the changelogs of released packages, with changelog.rootChangelog). Both now build it the same way.

  • Authenticate GitHub releases with repo.token (3d4b2b5)

    A GitHub release with repo.token and without tokens.github passed the token check but was sent to the GitHub API without authentication. The token now falls back to repo.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). The get_doc tool of the MCP server names the guide/prereleases page, instead of pages removed from the docs.

  • Pass publish.args to the publish command (37942a5)

    publish.args was 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.args of the resolved config as strings (af2518a)

    Its default, an empty array, was typed as never[] in the config returned by loadRelizyConfig().

  • 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, and relizy release could not create provider releases. An unknown host gives no provider.

  • Use repo.provider in relizy provider-release (afe4189)

    relizy provider-release ignored the repo.provider config option and detected the provider only from the origin remote, unlike relizy release and its safety check.

  • Apply the config options passed to bump(), changelog(), publish() and release() (2be2f56)

    Some options declared in their types were ignored: capZeroMajor and outOfRangePeers for bump(), includeCommitBody for changelog(), args, packageManager and safetyCheckTimeout for publish(), and all of them plus dependencyTypes and checkWorkspaceDependencies for release(). 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-release or relizy social fails (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 code 1, after the other posts. In relizy 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_request event, relizy put the detached HEAD on a branch named after GITHUB_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.gitlab falls back to CI_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 the JOB-TOKEN header. A job token cannot comment on merge requests, so the MR comment now asks to set GITLAB_TOKEN instead of failing the request.

  • Create the provider releases of relizy release --provider on that provider (50316d1)

    --provider only applied to the safety check of relizy release. The provider releases used repo.provider, or the provider detected from the remote. They now use the provider given.

  • Check the registry access of relizy publish whatever release.publish (d13954d)

    The publish safety check was skipped whenever release.publish was false, including when running relizy publish alone, which then published without first checking registry access. Only relizy release skips it, when it does not publish.

  • Replace every occurrence of the variables in changelogTitle and tagBody (a2ea161)

    templates.changelogTitle and templates.tagBody replaced only the first occurrence of a variable, unlike the other templates. A tagBody repeating {{newVersion}} gave the release commit one tag name and the changelog and provider release another. They now render it the same way.

  • Apply bump.capZeroMajor to canary versions (0e2c1a8)

    A canary computed its version without bump.capZeroMajor. A breaking change on 0.5.2 gave 1.0.0-0.canary-<sha>, while the release gives 0.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.json files. A canary is never committed, so they are now restored in every case. relizy bump --canary still 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 commitlint now 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 main after 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. ReleaseContext gets this commit in sha.

  • Install corepack in the GitLab CI job generated by relizy init (f2d76ea)

    Node 25+ no longer ships corepack, so corepack enable failed on the node:lts image (Node 26). The generated job now installs it first, with npm install -g corepack && corepack enable, which keeps the pnpm or yarn version pinned by the packageManager field.

  • Post the changelog of a Slack template in mrkdwn (9f0a11d)

    With social.slack.template and the summary format, {{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 an independent release 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 independent group 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 a selective group.

  • Return false from a dry-run PR comment without pull request (518e880)

    prComment({ dryRun: true }) returned true even when no pull request was detected, and relizy pr-comment --dry-run then said it would comment. It now shows the preview and returns false.

  • Hide the git error of a repository without an origin remote (9320043)

    Resolving the repository of a project without an origin remote printed error: No such remote 'origin' on stderr, for example on each relizy commitlint. The lookup is now silent, like relizy's other git reads.

  • Correct the JSDoc of the options and the --publish-token help (48364b1)

    The safetyCheck options said "Skip safety check" while true runs the checks. The tokens listed their environment variables out of their reading order (RELIZY_* is read first). publish.registries[].packageFilter named a removed option, and --publish-token mentioned only npm and pnpm, while bun is supported too. The JSDoc feeds the API reference and the get_config_option tool. Long dashes in the code, logs and JSDoc are now simple dashes.

  • Name the commitlint pages of the docs in the get_doc tool (25c2ff1)

    The description of the get_doc tool of the MCP server listed commitlint among the CLI pages, while the page is commitlint/cli. Tests now check the pages it names, and that every relizy.dev link in the code reaches an existing page and heading.

  • Publish only to the declared registries without publish.registry (a7c9c3f)

    With publish.registries and no publish.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 RUN badge 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_request on 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 permissions for a GitHub Actions workflow, the GITLAB_TOKEN variable on GitLab CI, or git credentials outside CI.

  • Check the registries of every publishable package before a release (a210b06)

    With publish.registries and no publish.registry, a package no entry covers is published to the npm config registry. relizy release did 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 log and git config through a shell. A branch such as feat/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 release check failed (token, registry, push access, --yes missing in CI), the release stopped without its report, PR comment or error:release hook. A failed check now writes the failed report, comments on the pull request and runs error:release, as for any other release error.

  • Ignore release commits of version groups in relizy commitlint (ff0b75e)

    With monorepo.groups and no templates.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.groups are now valid commit scopes, as the packages of monorepo.packages are.

  • Run generate:changelog once per package in independent mode (54d235f)

    With changelog.rootChangelog, each package's changelog was generated twice in independent mode, for its file and for the root changelog. A generate:changelog hook (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_migration with the migration guide (783a928)

    The check_migration tool of the MCP server no longer flags the dependencyTypes of a version group, which relizy 1 accepted as is, nor functions relizy 1 never exported. It now also finds includePrivates in code, --include-private in scripts, relizy release and relizy bump in a CI job without --yes, and variables repeated in templates.changelogTitle and templates.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:push or before:twitter hook now runs error:push or error:twitter, like the other steps.

  • Refuse a tagBody template that repeats {{newVersion}} (5ab1026)

    relizy reads a repository tag's version back from the text around {{newVersion}} in templates.tagBody. A template repeating it, such as v{{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, and check_migration points it out first.

  • Point out only the removed token lines in check_migration (d7721ad)

    check_migration flagged every token: line of the config for repo.token and publish.token, including tokens to keep (publish.registries[].token, social.slack.token). It now flags only the token key of the repo or publish block, 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=1 counted 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 except false and 0.

  • 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:social hook when the social step itself fails (9c41eb4)

    relizy social ran error:social only 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) in runCommand(). provider-release and social still report their errors in their result, so a release continues without them.

  • Name the GitHub release after its version, not --to (25bd378)

    --to is 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 and templates.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 full format, the message budget (blocks, payload, postMaxLength) was shared between groups. The first long package of an independent group 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_repository and api scopes (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 say skipped (twitter: prerelease), and SocialNetworkResult.skipped gives the reason.

  • Skip the AI checks of a prerelease bump with onlyStable (b29d361)

    A release with --prerelease, --prepatch, --preminor or --premajor no longer checks the AI provider (credentials, claude CLI) for targets with onlyStable, since their AI never runs. A beta job no longer needs to install the claude CLI.

  • 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 social and relizy provider-release run 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 --rebase locally, 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 by relizy commitlint and 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 planBumps for a debug log (9d96fe8)

    The bump read every package of the project only to log their count.

  • Remove the unread maxLength of 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 release uses its config. The log level and config name options were never read.

  • Remove the dead functions and internal-only exports (67e23d7)

    parseChangelogMarkdown(), parseGitRemoteUrl() and extractVersionFromPackageTag() were never called. About thirty functions and constants were exported without being imported elsewhere. None of them is in the public API listed by src/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 (release passes its own to its steps, or loadRelizyConfig() in a script) no longer reloads the config file and the .env file. 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.ts into registries, published versions and publication (c02725d)

  • Split createCommitAndTags into staging, commit message and tags (66d1b63)

  • Move the planning of bumps from repo.ts to bump-plan.ts (9a8d4fa)

  • Run git through a single module without a shell (cbb4c26)

    git-exec.ts runs git with execFile: 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 of git() and tryGit() (ci.ts, commitlint/git.ts, ci-workflow.ts, git.ts) and the execSync and execPromise git command strings. shell.ts is 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.ts and gitlab.ts repeated the tags, notes (changelog, AI), empty-release check, dry-run preview and summary, in unified and independent modes. postProviderReleases() in provider-releases.ts now runs this flow once. Each provider is a ReleaseProvider adapter 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-started absorbs guide/installation and starts from relizy init
    • guide/prereleases merges the canary and prerelease guides
    • guide/social-media merges the Twitter and Slack guides
    • config/overview absorbs config/multiple-configs and lists the tokens
    • commitlint/index absorbs commitlint/getting-started
    • the CI guides follow the workflow generated by relizy init
    • new api/commitlint page, README rewritten for v2
  • List the fixes of relizy 2 in the migration guide (4ead599)

    Also removes the claim that relizy release passed publish.args twice, since they never reached the publish command.

  • Generate llms.txt for 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 .md file 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 and index, follow, so search engines could index it. It now has a noindex and no canonical.

  • Point the canonical URL of index pages to their served URL (03992eb)

    commitlint/index.md declared https://relizy.dev/commitlint/index as 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, /cli or /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 in llms-full.txt.

  • Cache the hashed docs assets for a year (9b7ff48)

    Cloudflare Pages served /assets files with max-age=14400 and must-revalidate. Their names hold a hash of their content, so a _headers file now caches them for a year as immutable.

  • 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.svg is 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)

    transformHead returned 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_time held the date of the last update, like article: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/upgrade from the docs (1db29ea)
  • deps: Accept minor versions of @maz-ui/node and @maz-ui/utils (f6b8375)
  • deps: Update the ai version (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 --yes when 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.ts missing from its command's page (the global ones from cli/commands), or a config option missing from its doc page, now fails knowledge.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/e2e specs mocked everything except release.ts, and covered only the remote branch check with publish disabled and push enabled. That case is now tested in release.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 join cli.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 a RelizyCancelError when a prompt is refused, instead of exiting the process (ac14ad2)

    A refused or cancelled prompt (bump confirmation, uncommitted changes, rewritten tag) now throws a RelizyCancelError before anything is written. Hooks error:* and failed PR comments are skipped. The CLI still exits with code 0. Use isRelizyCancelError() 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 its title and asks once. confirmBump() only asks, displayBump() prints a bump, and the plans of planBumps() expose display() instead of confirm():

    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,
    })
  • ⚠️ Add releaseTitle, packageList and packageCount to the social templates (99cd9c8)

    Social posts are now built from a model of the release (getReleaseOverview()), which fixes the posts of independent releases. {{releaseTitle}} gives <name> <version> is out! for one version (@scope/pkg 5.1.0 is out!) and New 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 default templates.twitterMessage uses {{releaseTitle}}:

    export default defineConfig({
      templates: {
        twitterMessage: '📣 {{releaseTitle}}\n\n{{changelog}}\n\n{{releaseUrl}}\n{{changelogUrl}}',
      },
    })

    formatTweetMessage(), postReleaseToTwitter(), formatSlackMessage() and postReleaseToSlack() now take the template variables instead of projectName, version, releaseUrl and changelogUrl:

    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 in independent mode, a release is announced once: one post per platform, one AI call per platform, and the social, twitter and slack hooks run once. The post is titled New releases of <project>, with a section per group (its title), the unified or selective group first. Twitter fills the post by priority within postMaxLength, keeping every group's version line. Slack shares the message budget between sections and lists the contributors once. onlyStable leaves 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 release reports 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 CI artifacts:reports:dotenv (RELIZY_RELEASED, RELIZY_VERSION...).
    • release.report.json (--report-json) writes the whole report as JSON.
    • release() returns the report, and formatReleaseReportText() replaces buildReleaseSummary().
    - id: release
      run: pnpm relizy release --yes
    - if: steps.release.outputs.released == 'true'
      run: ./scripts/notify-teams.sh
  • ⚠️ 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=classic restores 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-preview calls it, and --no-preview hides the previews.

    relizy release ends with a summary, also used in the PR comment, the GitHub Actions run summary and the new release.report.markdown. See Migrating from v1 to v2.

  • ⚠️ Rename commitlint.codeBlocksLinter to changelogLinter (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 codeBlocksLinter to changelogLinter in the commitlint config, with the same values (auto, eslint, oxc), and the type CommitlintCodeBlocksLinter to CommitlintChangelogLinter. See Migrating from v1 to v2.

  • ⚠️ Reject commits that credit an AI tool (2123f4a)

    The new no-ai-attribution rule of relizy commitlint reports an AI co-author (Co-authored-by: Claude <noreply@anthropic.com>), a Claude-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)

    relizy used 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 its commit, gitTag and push options
    • planBumps(), confirmBump(), displayBump(), getPackages(): bump(), with dryRun to preview
    • formatTweetMessage(), postReleaseToTwitter(), formatSlackMessage(), postReleaseToSlack(), getReleaseOverview(), getSocialTemplateVariables(): social(), or the release parameter of a hook
    • buildReleaseSummary(), formatReleaseReportText(), formatReleaseReportMarkdown(): the report returned by release()
    • generateChangelog(), generateMarkDown(): changelog()
    • getDefaultConfig(), mergeTypes(): loadRelizyConfig(), which returns the config with its defaults
    • isPrerelease(): prerelease() of semver
    • init(): 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_migration tool of the MCP server lists the imports to change.

  • ⚠️ Rename monorepo.includePrivates to privatePackages (26b4711)

    The option now takes named values for the private packages of the workspace: ignore (default), or release (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_migration points out includePrivates in the config.

  • ⚠️ Remove monorepo.ignorePackageNames, replaced by monorepo.ignored (798faeb)

    The deprecated monorepo.ignorePackageNames is removed. List the directories of these packages in monorepo.ignored, as path globs matched like monorepo.packages. A config that still sets it fails to load with the fix, rather than releasing the packages it excluded. check_migration points it out first:

    export default defineConfig({
      monorepo: {
        packages: ['packages/*'],
        // ignorePackageNames: ['@scope/legacy'],
        ignored: ['packages/legacy'],
      },
    })
  • ⚠️ Remove publish.token, replaced by tokens.registry (1e8eb42)

    publish.token read the same environment variables as tokens.registry (RELIZY_NPM_TOKEN, NPM_TOKEN, NODE_AUTH_TOKEN). Set the registry token in tokens.registry, or per registry in publish.registries[].token. --publish-token and the token option of publish() now set tokens.registry, and the token of ReleaseOptions is only the git token:

    export default defineConfig({
      // publish: { token: process.env.MY_NPM_TOKEN },
      tokens: { registry: process.env.MY_NPM_TOKEN },
    })
  • ⚠️ Remove repo.token, replaced by tokens.github and tokens.gitlab (6d6c280)

    repo.token was a fallback for tokens.github and tokens.gitlab, which read GITHUB_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 the relizy/types entry 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 the newVersion and publish.packages options, which were never read (1d57afc)

    relizy never read the root newVersion option nor publish.packages. Remove them from the config. To leave a package out of the release, use monorepo.ignored.

  • ⚠️ Format the changelogs written with the project's formatter (7009491)

    Without changelog.formatCmd, the formatter found in the dependencies of the root package.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 posts changelog (1fb6dc2)

    social.slack.changelog and social.teams.changelog take the same values: full (commit bodies included), summary (commit titles), or none (or false for no changelog). Slack gains none, and Teams gains full. 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 changes line, instead of the card being refused:

    export default defineConfig({
      social: {
        slack: { enabled: true, changelog: 'full' },
        teams: { enabled: true, changelog: 'summary' },
      },
    })

    BREAKING CHANGE: social.slack.changelogFormat is renamed social.slack.changelog, with the same values. relizy 2 ignores changelogFormat. check_migration finds 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 own onlyStable:

    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 devDependencies could only add to the config list, and relizy release passed every publish.args twice.

    A bump.dependencyTypes without dependencies no longer bumps packages on every change of their dependencies. Add dependencies to keep that behavior:

    export default defineConfig({
      bump: {
        dependencyTypes: ['dependencies', 'peerDependencies'],
      },
    })
  • ⚠️ Exit with code 0 when there is nothing to bump (8c11e3f)

    relizy bump exits with code 0 when no commit triggers a bump, as relizy release does, instead of code 1. A CI job running it no longer fails for nothing. To run something only when a release happens, use a success:release hook.

  • ⚠️ Remove the publish.private option (acb3416)

    relizy never read it: private packages are never published. A config setting it no longer type-checks, and check_migration points it out:

    export default defineConfig({
      // publish: { private: false }, removed
      monorepo: { privatePackages: 'release' }, // to version the private packages
    })

❤️ Contributors