{"name":"release-it","version":"19.2.1","keywords":["build","changelog","commit","distribution","git","github","gitlab","interactive","ci","npm","publish","push","release","release-it","repository","script","shell","tag","tool","version","semver","plugin"],"author":{"name":"Lars Kappert","email":"lars@webpro.nl"},"license":"MIT","_id":"release-it@19.2.1","maintainers":[{"name":"webpro","email":"lars@webpro.nl"}],"homepage":"https://github.com/release-it/release-it#readme","bugs":{"url":"https://github.com/release-it/release-it/issues"},"bin":{"release-it":"bin/release-it.js"},"dist":{"shasum":"3943bfbbbdc7af2f09502077b565accbcb7dce3e","tarball":"http://registry-npm.ywwl.com/release-it/download/release-it-19.2.1.tgz","fileCount":86,"integrity":"sha512-Tu9kZKtCJkrLG6nD0OLbVdVP8wHgpQBpRvtZQmdEgGHDwg0FiiHmdnnPskTQllPWJFMtpHo3O7MHtr8/AWEFbA==","signatures":[{"sig":"MEUCIGek092oGeM5MC6hhFrnSyp+sDvjyJKokN4dhfMOtwSxAiEAxQQioBbXnc4VJVL2iZTQeL3Qq+AZZ3RNZQ6rkbfGmuw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":320856,"size":70253,"noattachment":false,"key":"/release-it/-/release-it-19.2.1.tgz"},"type":"module","types":"./types/index.d.ts","engines":{"node":"^20.12.0 || >=22.0.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./lib/index.js","require":"./lib/index.js"},"./package.json":"./package.json","./test/util/index.js":"./test/util/index.js"},"funding":[{"url":"https://github.com/sponsors/webpro","type":"github"},{"url":"https://opencollective.com/webpro","type":"opencollective"}],"gitHead":"5c0a6eeeddf7ed1ce0e4cfcffc1c2c72ab63a01b","scripts":{"docs":"remark README.md 'docs/**/*.md' '.github/*.md' -o","knip":"knip","lint":"eslint lib test","test":"node --env-file=.env.test --test && installed-check","format":"prettier --write eslint.config.mjs \"{lib,test}/**/*.js\"","release":"./bin/release-it.js"},"_npmUser":{"name":"webpro","email":"lars@webpro.nl"},"overrides":{"socks":"2.8.3","pac-resolver":"7.0.1"},"repository":{"url":"git+https://github.com/release-it/release-it.git","type":"git"},"_npmVersion":"10.9.4","description":"Generic CLI tool to automate versioning and package publishing-related tasks.","directories":{},"_nodeVersion":"22.21.1","dependencies":{"c12":"3.3.3","eta":"4.5.0","ora":"9.0.0","open":"10.2.0","semver":"7.7.3","undici":"6.22.0","ci-info":"^4.3.1","os-name":"6.1.0","inquirer":"12.11.1","url-join":"5.0.0","mime-types":"3.0.2","tinyglobby":"0.2.15","async-retry":"1.3.3","proxy-agent":"6.5.0","issue-parser":"7.0.1","lodash.merge":"4.6.2","yargs-parser":"21.1.1","@octokit/rest":"22.0.1","git-url-parse":"16.1.0","wildcard-match":"5.1.4","@phun-ky/typeof":"2.0.3","new-github-release-url":"2.0.0","@nodeutils/defaults-deep":"1.1.0"},"remarkConfig":{"plugins":["preset-webpro"]},"_hasShrinkwrap":false,"devDependencies":{"tar":"7.5.2","knip":"5.76.3","eslint":"9.39.2","globals":"16.5.0","mentoss":"0.12.0","prettier":"3.7.4","@eslint/js":"9.39.2","mock-stdio":"1.0.3","remark-cli":"12.0.1","typescript":"5.9.3","@types/node":"25.0.3","@eslint/compat":"1.4.1","installed-check":"9.3.0","@eslint/eslintrc":"3.3.3","remark-preset-webpro":"2.0.1","@octokit/request-error":"7.1.0","eslint-plugin-import-x":"4.16.1"},"_npmOperationalInternal":{"tmp":"tmp/release-it_19.2.1_1766563731702_0.8063546201733756","host":"s3://npm-registry-packages-npm-production"},"readme":"# Release It! 🚀\n\n🚀 Generic CLI tool to automate versioning and package publishing-related tasks:\n\n<img align=\"right\" src=\"./docs/assets/release-it.svg?raw=true\" height=\"280\" />\n\n- Bump version (in e.g. `package.json`)\n- [Git commit, tag, push][1]\n- Execute any (test or build) commands using [hooks][2]\n- [Create release at GitHub][3] or [GitLab][4]\n- [Generate changelog][5]\n- [Publish to npm][6]\n- [Manage pre-releases][7]\n- Extend with [plugins][8]\n- Release from any [CI/CD environment][9]\n\nUse release-it for version management and publish to anywhere with its versatile configuration, a powerful plugin\nsystem, and hooks to execute any command you need to test, build, and/or publish your project.\n\n[![Action Status][11]][10] [![npm version][13]][12]\n\nAre you using release-it at work? Please consider [sponsoring me][14]!\n\n## Installation\n\nAlthough release-it is a **generic** release tool, most projects use it for projects with npm packages. The recommended\nway to install release-it uses npm and adds some minimal configuration to get started:\n\n```bash\nnpm init release-it\n```\n\nAlternatively, install it manually, and add the `release` script to `package.json`:\n\n```bash\nnpm install -D release-it\n```\n\n```json\n{\n  \"name\": \"my-package\",\n  \"version\": \"1.0.0\",\n  \"scripts\": {\n    \"release\": \"release-it\"\n  },\n  \"devDependencies\": {\n    \"release-it\": \"^21.0.0\"\n  }\n}\n```\n\n## Usage\n\nRun release-it from the root of the project using either `npm run` or `npx`:\n\n```bash\nnpm run release\nnpx release-it\n```\n\nYou will be prompted to select the new version, and more prompts will follow based on your configuration.\n\n## Yarn & pnpm\n\n- Using Yarn? Please see the [npm section on Yarn][15].\n- Using pnpm? Please see [release-it-pnpm][16].\n\n## Monorepos\n\nUsing a monorepo? Please see this [monorepo recipe][17].\n\n## Global Installation\n\nPer-project installation as shown above is recommended, but global installs are supported as well:\n\n- From npm: `npm install -g release-it`\n- From Homebrew: `brew install release-it`\n\n## Containerized\n\nUse [Release It! - Containerized][18] to run it in any environment as a standardized container without the need for a\nNode environment. Thanks [Juan Carlos][19]!\n\n## Videos, articles & examples\n\nHere's a list of interesting external resources:\n\n- Video: [How to use GitHub Actions & Release-It to Easily Release Your Code][20]\n- Article: [Monorepo Semantic Releases][21] ([repo][22])\n\nWant to add yours to the list? Just open a pull request!\n\n## Configuration\n\nOut of the box, release-it has sane defaults, and [plenty of options][23] to configure it. Most projects use a\n`.release-it.json` file in the project root, or a `release-it` property in `package.json`.\n\nHere's a quick example `.release-it.json`:\n\n```json\n{\n  \"$schema\": \"https://unpkg.com/release-it@20/schema/release-it.json\",\n  \"git\": {\n    \"commitMessage\": \"chore: release v${version}\"\n  },\n  \"github\": {\n    \"release\": true\n  }\n}\n```\n\n→ See [Configuration][24] for more details.\n\n## Interactive vs. CI mode\n\nBy default, release-it is **interactive** and allows you to confirm each task before execution:\n\n<img src=\"./docs/assets/release-it-interactive.gif?raw=true\" height=\"290\" />\n\nBy using the `--ci` option, the process is fully automated without prompts. The configured tasks will be executed as\ndemonstrated in the first animation above. In a Continuous Integration (CI) environment, this non-interactive mode is\nactivated automatically.\n\nUse `--only-version` to use a prompt only to determine the version, and automate the rest.\n\n## Latest version\n\nHow does release-it determine the latest version?\n\n1. For projects with a `package.json`, its `version` will be used (see [npm][25] to skip this).\n2. Otherwise, release-it uses the latest Git tag to determine which version should be released.\n3. As a last resort, `0.0.0` will be used as the latest version.\n\nAlternatively, a plugin can be used to override this (e.g. to manage a `VERSION` or `composer.json` file):\n\n- [@release-it/bumper][26] to read from or bump the version in any file\n- [@release-it/conventional-changelog][27] to get a recommended bump based on commit messages\n- [release-it-calver-plugin][28] to use CalVer (Calendar Versioning)\n\nAdd the `--release-version` flag to print the **next** version without releasing anything. If no next version is\navailable, it prints nothing and exits successfully.\n\n## Git\n\nGit projects are supported well by release-it, automating the tasks to stage, commit, tag and push releases to any Git\nremote.\n\n→ See [Git][29] for more details.\n\n## npmjs.com Releases\n\nAs of July 2025, GitHub and GitLab CI workflows can now use npm's [Trusted Publishing][30] OpenID Connect (OIDC)\nintegration for secure, token-free publishing from CI/CD. This eliminates long-lived tokens and automatically generates\nprovenance attestations. See [docs/npm.md][31] for details.\n\n## GitHub Releases\n\nGitHub projects can have releases attached to Git tags, containing release notes and assets. There are two ways to add\n[GitHub releases][32] in your release-it flow:\n\n1. Automated (requires a `GITHUB_TOKEN`)\n2. Manual (using the GitHub web interface with pre-populated fields)\n\n→ See [GitHub Releases][33] for more details.\n\n## GitLab Releases\n\nGitLab projects can have releases attached to Git tags, containing release notes and assets. To automate [GitLab\nreleases][34]:\n\n- Configure `gitlab.release: true`\n- Obtain a [personal access token][35] (release-it needs the `api` and `self_rotate` scopes).\n- Make sure the token is [available as an environment variable][36].\n\n→ See [GitLab Releases][37] for more details.\n\n## Changelog\n\nBy default, release-it generates a changelog, to show and help select a version for the new release. Additionally, this\nchangelog serves as the release notes for the GitHub or GitLab release.\n\nThe [default command][23] is based on `git log ...`. This setting (`git.changelog`) can be overridden. To further\ncustomize the release notes for the GitHub or GitLab release, there's `github.releaseNotes` or `gitlab.releaseNotes`.\nMake sure any of these commands output the changelog to `stdout`. Note that release-it by default is agnostic to commit\nmessage conventions. Plugins are available for:\n\n- GitHub and GitLab Releases\n- auto-changelog\n- Conventional Changelog\n- Keep A Changelog\n- git-cliff\n\nTo print the changelog without releasing anything, add the `--changelog` flag.\n\n→ See [Changelog][38] for more details.\n\n## Publish to npm\n\nWith a `package.json` in the current directory, release-it will let `npm` bump the version in `package.json` (and\n`package-lock.json` if present), and publish to the npm registry.\n\n→ See [Publish to npm][25] for more details.\n\n## Manage pre-releases\n\nWith release-it, it's easy to create pre-releases: a version of your software that you want to make available, while\nit's not in the stable semver range yet. Often \"alpha\", \"beta\", and \"rc\" (release candidate) are used as identifiers for\npre-releases. An example pre-release version is `2.0.0-beta.0`.\n\n→ See [Manage pre-releases][39] for more details.\n\n## Update or re-run existing releases\n\nUse `--no-increment` to not increment the last version, but update the last existing tag/version.\n\nThis may be helpful in cases where the version was already incremented. Here are a few example scenarios:\n\n- To update or publish a (draft) GitHub Release for an existing Git tag.\n- Publishing to npm succeeded, but pushing the Git tag to the remote failed. Then use\n  `release-it --no-increment --no-npm` to skip the `npm publish` and try pushing the same Git tag again.\n\n## Hooks\n\nUse script hooks to run shell commands at any moment during the release process (such as `before:init` or\n`after:release`).\n\nThe format is `[prefix]:[hook]` or `[prefix]:[plugin]:[hook]`:\n\n| part   | value                                       |\n| ------ | ------------------------------------------- |\n| prefix | `before` or `after`                         |\n| plugin | `version`, `git`, `npm`, `github`, `gitlab` |\n| hook   | `init`, `bump`, `release`                   |\n\nUse the optional `:plugin` part in the middle to hook into a life cycle method exactly before or after any plugin.\n\nThe core plugins include `version`, `git`, `npm`, `github`, `gitlab`.\n\nNote that hooks like `after:git:release` will not run when either the `git push` failed, or when it is configured not to\nbe executed (e.g. `git.push: false`). See [execution order][40] for more details on execution order of plugin lifecycle\nmethods.\n\nUse `--no-hooks` to skip all hooks, or disable a single hook from the command line (e.g. `--no-hooks.before:init`).\n\nAll commands can use configuration variables (like template strings). An array of commands can also be provided, they\nwill run one after another. Some example release-it configuration:\n\n```json\n{\n  \"hooks\": {\n    \"before:init\": [\"npm run lint\", \"npm test\"],\n    \"after:my-plugin:bump\": \"./bin/my-script.sh\",\n    \"after:bump\": \"npm run build\",\n    \"after:git:release\": \"echo After git push, before github release\",\n    \"after:release\": \"echo Successfully released ${name} v${version} to ${repo.repository}.\"\n  }\n}\n```\n\nThe variables can be found in the [default configuration][23]. Additionally, the following variables are exposed:\n\n```text\nversion\nlatestVersion\nchangelog\nname\nrepo.remote, repo.protocol, repo.host, repo.owner, repo.repository, repo.project\nbranchName\nreleaseUrl\n```\n\nAll variables are available in all hooks. The only exception is that the additional variables listed above are not yet\navailable in the `init` hook.\n\nUse `--verbose` to log the output of the commands.\n\nFor the sake of verbosity, the full list of hooks is actually: `init`, `beforeBump`, `bump`, `beforeRelease`, `release`\nor `afterRelease`. However, hooks like `before:beforeRelease` look weird and are usually not useful in practice.\n\nNote that arguments need to be quoted properly when used from the command line:\n\n```bash\nrelease-it --'hooks.after:release=\"echo Successfully released ${name} v${version} to ${repo.repository}.\"'\n```\n\nUsing @inquirer/prompts inside custom hook scripts might cause issues (since release-it also uses this itself).\n\n## Dry Runs\n\nUse `--dry-run` to show the interactivity and the commands it _would_ execute.\n\n→ See [Dry Runs][41] for more details.\n\n## Troubleshooting & debugging\n\n- With `release-it --verbose` (or `-V`), release-it prints the output of every user-defined [hook][2].\n- With `release-it -VV`, release-it also prints the output of every internal command.\n- Use `NODE_DEBUG=release-it:* release-it [...]` to print configuration and more error details.\n\nUse `verbose: 2` in a configuration file to have the equivalent of `-VV` on the command line.\n\n## Plugins\n\nSince v11, release-it can be extended in many, many ways. Here are some plugins:\n\n| Plugin                                    | Description                                                                                 |\n| ----------------------------------------- | ------------------------------------------------------------------------------------------- |\n| [@release-it/bumper][26]                  | Read & write the version from/to any file                                                   |\n| [@release-it/conventional-changelog][27]  | Provides recommended bump, conventional-changelog, and updates `CHANGELOG.md`               |\n| [@release-it/keep-a-changelog][42]        | Maintain CHANGELOG.md using the Keep a Changelog standards                                  |\n| [@release-it-plugins/lerna-changelog][43] | Integrates lerna-changelog into the release-it pipeline                                     |\n| [@jcamp-code/release-it-changelogen][44]  | Use [@unjs/changelogen][45] for versioning and changelog                                    |\n| [@release-it-plugins/workspaces][46]      | Releases each of your projects configured workspaces                                        |\n| [release-it-calver-plugin][28]            | Enables Calendar Versioning (calver) with release-it                                        |\n| [@grupoboticario/news-fragments][47]      | An easy way to generate your changelog file                                                 |\n| [@j-ulrich/release-it-regex-bumper][48]   | Regular expression based version read/write plugin for release-it                           |\n| [@jcamp-code/release-it-dotnet][49]       | Use .csproj or .props file for versioning, automate NuGet publishing                        |\n| [release-it-pnpm][16]                     | Add basic support for pnpm workspaces, integrates with [bumpp][50] and [changelogithub][51] |\n| [changesets-release-it-plugin][52]        | Combine [Changesets][53] changelog management with release-it                               |\n| [release-it-gitea][54]                    | Gitea plugin to create Gitea releases and upload attachments                                |\n| [release-it-beautiful-changelog][55]      | Generate beautiful changelogs using conventional commits by [@unjs/changelogen][45]         |\n\nInternally, release-it uses its own plugin architecture (for Git, GitHub, GitLab, npm).\n\n→ See all [release-it plugins on npm][56].\n\n→ See [plugins][57] for documentation to write plugins.\n\n## Use release-it programmatically\n\nWhile mostly used as a CLI tool, release-it can be used as a dependency to integrate in your own scripts. See [use\nrelease-it programmatically][58] for example code.\n\n## Projects using release-it\n\n- [AdonisJs][59]\n- [Axios][60]\n- [Chakra UI][61]\n- [Halo][62]\n- [hosts][63]\n- [js-cookie][64]\n- [jQuery][65]\n- [Madge][66]\n- [Metalsmith][67]\n- [n8n][68]\n- [Node-Redis][69]\n- [React Native Paper][70]\n- [Readability.js][71]\n- [Redux][72]\n- [Saleor][73]\n- [Semantic UI React][74]\n- [tabler-icons][75]\n- Swagger ([swagger-ui][76] + [swagger-editor][77])\n- [Repositories that depend on release-it][78]\n- GitHub search for [path:\\*\\*/.release-it.json][79]\n\n## Node.js version support\n\nThe latest major version is v21, supporting Node.js 22.21 and up:\n\n| release-it | Node.js  |\n| :--------: | :------- |\n|    v21     | v22.21.0 |\n|    v20     | v20.19.0 |\n|    v19     | v20.12.0 |\n|    v18     | v20      |\n|    v17     | v18      |\n|    v16     | v16      |\n|    v15     | v14      |\n\nAlso see [CHANGELOG.md][80] for dates and details.\n\n## Links\n\n- See [CHANGELOG.md][80] for major/breaking updates, and [releases][81] for a detailed version history.\n- To **contribute**, please read [CONTRIBUTING.md][82] first.\n- Please [open an issue][83] if anything is missing or unclear in this documentation.\n\n## License\n\n[MIT][84]\n\nAre you using release-it at work? Please consider [sponsoring me][14]!\n\n[1]: #git\n[2]: #hooks\n[3]: #github-releases\n[4]: #gitlab-releases\n[5]: #changelog\n[6]: #publish-to-npm\n[7]: #manage-pre-releases\n[8]: #plugins\n[9]: ./docs/ci.md\n[10]: https://github.com/release-it/release-it/actions\n[11]: https://github.com/release-it/release-it/workflows/Cross-OS%20Tests/badge.svg\n[12]: https://www.npmjs.com/package/release-it\n[13]: https://badge.fury.io/js/release-it.svg\n[14]: https://github.com/sponsors/webpro\n[15]: ./docs/npm.md#yarn\n[16]: https://github.com/hyoban/release-it-pnpm\n[17]: ./docs/recipes/monorepo.md\n[18]: https://github.com/juancarlosjr97/release-it-containerized\n[19]: https://github.com/juancarlosjr97\n[20]: https://www.youtube.com/watch?v=7pBcuT7j_A0\n[21]: https://medium.com/valtech-ch/monorepo-semantic-releases-db114811efa5\n[22]: https://github.com/b12k/monorepo-semantic-releases\n[23]: ./config/release-it.json\n[24]: ./docs/configuration.md\n[25]: ./docs/npm.md\n[26]: https://github.com/release-it/bumper\n[27]: https://github.com/release-it/conventional-changelog\n[28]: https://github.com/casmith/release-it-calver-plugin\n[29]: ./docs/git.md\n[30]: https://docs.npmjs.com/trusted-publishers\n[31]: ./docs/npm.md#trusted-publishing-oidc\n[32]: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases\n[33]: ./docs/github-releases.md\n[34]: https://docs.gitlab.com/api/releases/\n[35]: https://gitlab.com/profile/personal_access_tokens\n[36]: ./docs/environment-variables.md\n[37]: ./docs/gitlab-releases.md\n[38]: ./docs/changelog.md\n[39]: ./docs/pre-releases.md\n[40]: ./docs/plugins.md#execution-order\n[41]: ./docs/dry-runs.md\n[42]: https://github.com/release-it/keep-a-changelog\n[43]: https://github.com/release-it-plugins/lerna-changelog\n[44]: https://github.com/jcamp-code/release-it-changelogen\n[45]: https://github.com/unjs/changelogen\n[46]: https://github.com/release-it-plugins/workspaces\n[47]: https://github.com/grupoboticario/news-fragments\n[48]: https://github.com/j-ulrich/release-it-regex-bumper\n[49]: https://github.com/jcamp-code/release-it-dotnet\n[50]: https://github.com/antfu/bumpp\n[51]: https://github.com/antfu/changelogithub\n[52]: https://www.npmjs.com/package/changesets-release-it-plugin\n[53]: https://github.com/changesets/changesets\n[54]: https://github.com/lib-pack/release-it-gitea\n[55]: https://github.com/mohammadGh/release-it-beautiful-changelog\n[56]: https://www.npmjs.com/search?q=keywords:release-it-plugin\n[57]: ./docs/plugins.md\n[58]: ./docs/recipes/programmatic.md\n[59]: https://github.com/adonisjs/core\n[60]: https://github.com/axios/axios\n[61]: https://github.com/chakra-ui/chakra-ui\n[62]: https://github.com/halo-dev/halo\n[63]: https://github.com/StevenBlack/hosts\n[64]: https://github.com/js-cookie/js-cookie\n[65]: https://github.com/jquery/jquery\n[66]: https://github.com/pahen/madge\n[67]: https://github.com/metalsmith/metalsmith\n[68]: https://github.com/n8n-io/n8n\n[69]: https://github.com/redis/node-redis\n[70]: https://github.com/callstack/react-native-paper\n[71]: https://github.com/mozilla/readability\n[72]: https://github.com/reduxjs/redux\n[73]: https://github.com/saleor/saleor\n[74]: https://github.com/Semantic-Org/Semantic-UI-React\n[75]: https://github.com/tabler/tabler-icons\n[76]: https://github.com/swagger-api/swagger-ui\n[77]: https://github.com/swagger-api/swagger-editor\n[78]: https://github.com/release-it/release-it/network/dependents\n[79]: https://github.com/search?q=path%3A**%2F.release-it.json&type=code\n[80]: ./CHANGELOG.md\n[81]: https://github.com/release-it/release-it/releases\n[82]: ./.github/CONTRIBUTING.md\n[83]: https://github.com/release-it/release-it/issues/new\n[84]: ./LICENSE\n","publish_time":1766563731841,"_cnpm_publish_time":1766563731841,"dist-tags":{"latest":"21.1.2","next":"20.0.0-1","release-it-14":"14.14.3"}}