release-it
Advanced tools
Comparing version 17.0.0 to 17.0.1
{ | ||
"name": "release-it", | ||
"version": "17.0.0", | ||
"version": "17.0.1", | ||
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.", | ||
@@ -35,2 +35,12 @@ "keywords": [ | ||
"bugs": "https://github.com/release-it/release-it/issues", | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
"url": "https://github.com/sponsors/webpro" | ||
}, | ||
{ | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/webpro" | ||
} | ||
], | ||
"bin": { | ||
@@ -37,0 +47,0 @@ "release-it": "bin/release-it.js" |
261
README.md
@@ -22,2 +22,4 @@ # Release It! 🚀 | ||
Are you using release-it at work? Please consider [sponsoring me][14]! | ||
## Installation | ||
@@ -64,3 +66,3 @@ | ||
You might want to ask your questions in the [Release It! knowledge base][14] (powered by OpenAI and [7-docs][15]). This | ||
You might want to ask your questions in the [Release It! knowledge base][15] (powered by OpenAI and [7-docs][16]). This | ||
is an experimental knowledge base, answers may be incorrect. | ||
@@ -70,7 +72,7 @@ | ||
Using Yarn? Please see the [npm section on Yarn][16]. | ||
Using Yarn? Please see the [npm section on Yarn][17]. | ||
## Monorepos | ||
Using a monorepo? Please see this [monorepo recipe][17]. | ||
Using a monorepo? Please see this [monorepo recipe][18]. | ||
@@ -88,4 +90,4 @@ ## Global Installation | ||
- Video: [How to use GitHub Actions & Release-It to Easily Release Your Code][18] | ||
- Article: [Monorepo Semantic Releases][19] ([repo][20]) | ||
- Video: [How to use GitHub Actions & Release-It to Easily Release Your Code][19] | ||
- Article: [Monorepo Semantic Releases][20] ([repo][21]) | ||
@@ -96,3 +98,3 @@ Want to add yours to the list? Just open a pull request! | ||
Out of the box, release-it has sane defaults, and [plenty of options][21] to configure it. Most projects use a | ||
Out of the box, release-it has sane defaults, and [plenty of options][22] to configure it. Most projects use a | ||
`.release-it.json` file in the project root, or a `release-it` property in `package.json`. | ||
@@ -113,3 +115,3 @@ | ||
→ See [Configuration][22] for more details. | ||
→ See [Configuration][23] for more details. | ||
@@ -132,11 +134,11 @@ ## Interactive vs. CI mode | ||
1. For projects with a `package.json`, its `version` will be used (see [npm][23] to skip this). | ||
2. Otherwise, release-it uses the latest Git tag to determine which version should be released. | ||
3. As a last resort, `0.0.0` will be used as the latest version. | ||
1. For projects with a `package.json`, its `version` will be used (see [npm][24] to skip this). | ||
2. Otherwise, release-it uses the latest Git tag to determine which version should be released. | ||
3. As a last resort, `0.0.0` will be used as the latest version. | ||
Alternatively, a plugin can be used to override this (e.g. to manage a `VERSION` or `composer.json` file): | ||
- [@release-it/bumper][24] to read from or bump the version in any file | ||
- [@release-it/conventional-changelog][25] to get a recommended bump based on commit messages | ||
- [release-it-calver-plugin][26] to use CalVer (Calendar Versioning) | ||
- [@release-it/bumper][25] to read from or bump the version in any file | ||
- [@release-it/conventional-changelog][26] to get a recommended bump based on commit messages | ||
- [release-it-calver-plugin][27] to use CalVer (Calendar Versioning) | ||
@@ -150,3 +152,3 @@ Add the `--release-version` flag to print the **next** version without releasing anything. | ||
→ See [Git][27] for more details. | ||
→ See [Git][28] for more details. | ||
@@ -156,8 +158,8 @@ ## GitHub Releases | ||
GitHub projects can have releases attached to Git tags, containing release notes and assets. There are two ways to add | ||
[GitHub releases][28] in your release-it flow: | ||
[GitHub releases][29] in your release-it flow: | ||
1. Automated (requires a `GITHUB_TOKEN`) | ||
2. Manual (using the GitHub web interface with pre-populated fields) | ||
1. Automated (requires a `GITHUB_TOKEN`) | ||
2. Manual (using the GitHub web interface with pre-populated fields) | ||
→ See [GitHub Releases][29] for more details. | ||
→ See [GitHub Releases][30] for more details. | ||
@@ -167,9 +169,9 @@ ## GitLab Releases | ||
GitLab projects can have releases attached to Git tags, containing release notes and assets. To automate [GitLab | ||
releases][30]: | ||
releases][31]: | ||
- Configure `gitlab.release: true` | ||
- Obtain a [personal access token][31] (release-it only needs the "api" scope). | ||
- Make sure the token is [available as an environment variable][32]. | ||
- Obtain a [personal access token][32] (release-it only needs the "api" scope). | ||
- Make sure the token is [available as an environment variable][33]. | ||
→ See [GitLab Releases][33] for more details. | ||
→ See [GitLab Releases][34] for more details. | ||
@@ -181,3 +183,3 @@ ## Changelog | ||
The [default command][21] is based on `git log ...`. This setting (`git.changelog`) can be overridden. To further | ||
The [default command][22] is based on `git log ...`. This setting (`git.changelog`) can be overridden. To further | ||
customize the release notes for the GitHub or GitLab release, there's `github.releaseNotes` or `gitlab.releaseNotes`. | ||
@@ -194,3 +196,3 @@ Make sure any of these commands output the changelog to `stdout`. Note that release-it by default is agnostic to commit | ||
→ See [Changelog][34] for more details. | ||
→ See [Changelog][35] for more details. | ||
@@ -202,3 +204,3 @@ ## Publish to npm | ||
→ See [Publish to npm][23] for more details. | ||
→ See [Publish to npm][24] for more details. | ||
@@ -211,3 +213,3 @@ ## Manage pre-releases | ||
→ See [Manage pre-releases][35] for more details. | ||
→ See [Manage pre-releases][36] for more details. | ||
@@ -242,3 +244,3 @@ ## Update or re-run existing releases | ||
Note that hooks like `after:git:release` will not run when either the `git push` failed, or when it is configured not to | ||
be executed (e.g. `git.push: false`). See [execution order][36] for more details on execution order of plugin lifecycle | ||
be executed (e.g. `git.push: false`). See [execution order][37] for more details on execution order of plugin lifecycle | ||
methods. | ||
@@ -261,3 +263,3 @@ | ||
The variables can be found in the [default configuration][21]. Additionally, the following variables are exposed: | ||
The variables can be found in the [default configuration][22]. Additionally, the following variables are exposed: | ||
@@ -294,3 +296,3 @@ ```text | ||
→ See [Dry Runs][37] for more details. | ||
→ See [Dry Runs][38] for more details. | ||
@@ -311,18 +313,18 @@ ## Troubleshooting & debugging | ||
| ----------------------------------------- | ----------------------------------------------------------------------------- | | ||
| [@release-it/bumper][24] | Read & write the version from/to any file | | ||
| [@release-it/conventional-changelog][25] | Provides recommended bump, conventional-changelog, and updates `CHANGELOG.md` | | ||
| [@release-it/keep-a-changelog][38] | Maintain CHANGELOG.md using the Keep a Changelog standards | | ||
| [@release-it-plugins/lerna-changelog][39] | Integrates lerna-changelog into the release-it pipeline | | ||
| [@jcamp-code/release-it-changelogen][72] | Use [@unjs/changelogen][73] for versioning and changelog | | ||
| [@release-it-plugins/workspaces][40] | Releases each of your projects configured workspaces | | ||
| [release-it-calver-plugin][26] | Enables Calendar Versioning (calver) with release-it | | ||
| [@grupoboticario/news-fragments][41] | An easy way to generate your changelog file | | ||
| [@j-ulrich/release-it-regex-bumper][42] | Regular expression based version read/write plugin for release-it | | ||
| [@jcamp-code/release-it-dotnet][74] | Use .csproj or .props file for versioning, automate NuGet publishing | | ||
| [@release-it/bumper][25] | Read & write the version from/to any file | | ||
| [@release-it/conventional-changelog][26] | Provides recommended bump, conventional-changelog, and updates `CHANGELOG.md` | | ||
| [@release-it/keep-a-changelog][39] | Maintain CHANGELOG.md using the Keep a Changelog standards | | ||
| [@release-it-plugins/lerna-changelog][40] | Integrates lerna-changelog into the release-it pipeline | | ||
| [@jcamp-code/release-it-changelogen][41] | Use [@unjs/changelogen][42] for versioning and changelog | | ||
| [@release-it-plugins/workspaces][43] | Releases each of your projects configured workspaces | | ||
| [release-it-calver-plugin][27] | Enables Calendar Versioning (calver) with release-it | | ||
| [@grupoboticario/news-fragments][44] | An easy way to generate your changelog file | | ||
| [@j-ulrich/release-it-regex-bumper][45] | Regular expression based version read/write plugin for release-it | | ||
| [@jcamp-code/release-it-dotnet][46] | Use .csproj or .props file for versioning, automate NuGet publishing | | ||
Internally, release-it uses its own plugin architecture (for Git, GitHub, GitLab, npm). | ||
→ See all [release-it plugins on npm][43]. | ||
→ See all [release-it plugins on npm][47]. | ||
→ See [plugins][44] for documentation to write plugins. | ||
→ See [plugins][48] for documentation to write plugins. | ||
@@ -332,41 +334,43 @@ ## Use release-it programmatically | ||
While mostly used as a CLI tool, release-it can be used as a dependency to integrate in your own scripts. See [use | ||
release-it programmatically][45] for example code. | ||
release-it programmatically][49] for example code. | ||
## Example projects using release-it | ||
- [axios/axios][46] | ||
- [blockchain/blockchain-wallet-v4-frontend][47] | ||
- [callstack/react-native-paper][48] | ||
- [ember-cli/ember-cli][49] | ||
- [js-cookie/js-cookie][50] | ||
- [metalsmith/metalsmith][51] | ||
- [mozilla/readability][52] | ||
- [pahen/madge][53] | ||
- [redis/node-redis][54] | ||
- [reduxjs/redux][55] | ||
- [saleor/saleor][56] | ||
- [Semantic-Org/Semantic-UI-React][57] | ||
- [shipshapecode/shepherd][58] | ||
- [StevenBlack/hosts][59] | ||
- [swagger-api/swagger-ui][60] + [swagger-editor][61] | ||
- [tabler/tabler][62] + [tabler-icons][63] | ||
- [youzan/vant][64] | ||
- [Repositories that depend on release-it][65] | ||
- GitHub search for [path:\*\*/.release-it.json][66] | ||
- [axios/axios][50] | ||
- [blockchain/blockchain-wallet-v4-frontend][51] | ||
- [callstack/react-native-paper][52] | ||
- [ember-cli/ember-cli][53] | ||
- [js-cookie/js-cookie][54] | ||
- [metalsmith/metalsmith][55] | ||
- [mozilla/readability][56] | ||
- [pahen/madge][57] | ||
- [redis/node-redis][58] | ||
- [reduxjs/redux][59] | ||
- [saleor/saleor][60] | ||
- [Semantic-Org/Semantic-UI-React][61] | ||
- [shipshapecode/shepherd][62] | ||
- [StevenBlack/hosts][63] | ||
- [swagger-api/swagger-ui][64] + [swagger-editor][65] | ||
- [tabler/tabler][66] + [tabler-icons][67] | ||
- [youzan/vant][68] | ||
- [Repositories that depend on release-it][69] | ||
- GitHub search for [path:\*\*/.release-it.json][70] | ||
## Legacy Node.js | ||
The latest major version is v16, supporting Node.js 16 and up (as Node.js v14 is EOL). Use release-it v15 for | ||
environments running Node.js v14. Also see [CHANGELOG.md][67]. | ||
The latest major version is v17, supporting Node.js 18 and up (as Node.js v16 is EOL). The previous major version was | ||
v16, supporting Node.js 16. Use release-it v15 for environments running Node.js v14. Also see [CHANGELOG.md][71]. | ||
## Links | ||
- See [CHANGELOG.md][67] for major/breaking updates, and [releases][68] for a detailed version history. | ||
- To **contribute**, please read [CONTRIBUTING.md][69] first. | ||
- Please [open an issue][70] if anything is missing or unclear in this documentation. | ||
- See [CHANGELOG.md][71] for major/breaking updates, and [releases][72] for a detailed version history. | ||
- To **contribute**, please read [CONTRIBUTING.md][73] first. | ||
- Please [open an issue][74] if anything is missing or unclear in this documentation. | ||
## License | ||
[MIT][71] | ||
[MIT][75] | ||
Are you using release-it at work? Please consider [sponsoring me][14]! | ||
[1]: #git | ||
@@ -385,62 +389,63 @@ [2]: #hooks | ||
[13]: https://badge.fury.io/js/release-it.svg | ||
[14]: https://release-it.deno.dev | ||
[15]: https://github.com/7-docs/7-docs | ||
[16]: ./docs/npm.md#yarn | ||
[17]: ./docs/recipes/monorepo.md | ||
[18]: https://www.youtube.com/watch?v=7pBcuT7j_A0 | ||
[19]: https://medium.com/valtech-ch/monorepo-semantic-releases-db114811efa5 | ||
[20]: https://github.com/b12k/monorepo-semantic-releases | ||
[21]: ./config/release-it.json | ||
[22]: ./docs/configuration.md | ||
[23]: ./docs/npm.md | ||
[24]: https://github.com/release-it/bumper | ||
[25]: https://github.com/release-it/conventional-changelog | ||
[26]: https://github.com/casmith/release-it-calver-plugin | ||
[27]: ./docs/git.md | ||
[28]: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases | ||
[29]: ./docs/github-releases.md | ||
[30]: https://docs.gitlab.com/ce/user/project/releases/ | ||
[31]: https://gitlab.com/profile/personal_access_tokens | ||
[32]: ./docs/environment-variables.md | ||
[33]: ./docs/gitlab-releases.md | ||
[34]: ./docs/changelog.md | ||
[35]: ./docs/pre-releases.md | ||
[36]: ./docs/plugins.md#execution-order | ||
[37]: ./docs/dry-runs.md | ||
[38]: https://github.com/release-it/keep-a-changelog | ||
[39]: https://github.com/release-it-plugins/lerna-changelog | ||
[40]: https://github.com/release-it-plugins/workspaces | ||
[41]: https://github.com/grupoboticario/news-fragments | ||
[42]: https://github.com/j-ulrich/release-it-regex-bumper | ||
[43]: https://www.npmjs.com/search?q=keywords:release-it-plugin | ||
[44]: ./docs/plugins.md | ||
[45]: ./docs/recipes/programmatic.md | ||
[46]: https://github.com/axios/axios | ||
[47]: https://github.com/blockchain/blockchain-wallet-v4-frontend | ||
[48]: https://github.com/callstack/react-native-paper | ||
[49]: https://github.com/ember-cli/ember-cli | ||
[50]: https://github.com/js-cookie/js-cookie | ||
[51]: https://github.com/metalsmith/metalsmith | ||
[52]: https://github.com/mozilla/readability | ||
[53]: https://github.com/pahen/madge | ||
[54]: https://github.com/redis/node-redis | ||
[55]: https://github.com/reduxjs/redux | ||
[56]: https://github.com/saleor/saleor | ||
[57]: https://github.com/Semantic-Org/Semantic-UI-React | ||
[58]: https://github.com/shipshapecode/shepherd | ||
[59]: https://github.com/StevenBlack/hosts | ||
[60]: https://github.com/swagger-api/swagger-ui | ||
[61]: https://github.com/swagger-api/swagger-editor | ||
[62]: https://github.com/tabler/tabler | ||
[63]: https://github.com/tabler/tabler-icons | ||
[64]: https://github.com/youzan/vant | ||
[65]: https://github.com/release-it/release-it/network/dependents | ||
[66]: https://github.com/search?q=path%3A**%2F.release-it.json&type=code | ||
[67]: ./CHANGELOG.md | ||
[68]: https://github.com/release-it/release-it/releases | ||
[69]: ./.github/CONTRIBUTING.md | ||
[70]: https://github.com/release-it/release-it/issues/new | ||
[71]: ./LICENSE | ||
[72]: https://github.com/jcamp-code/release-it-changelogen | ||
[73]: https://github.com/unjs/changelogen | ||
[74]: https://github.com/jcamp-code/release-it-dotnet | ||
[14]: https://github.com/sponsors/webpro | ||
[15]: https://release-it.deno.dev | ||
[16]: https://github.com/7-docs/7-docs | ||
[17]: ./docs/npm.md#yarn | ||
[18]: ./docs/recipes/monorepo.md | ||
[19]: https://www.youtube.com/watch?v=7pBcuT7j_A0 | ||
[20]: https://medium.com/valtech-ch/monorepo-semantic-releases-db114811efa5 | ||
[21]: https://github.com/b12k/monorepo-semantic-releases | ||
[22]: ./config/release-it.json | ||
[23]: ./docs/configuration.md | ||
[24]: ./docs/npm.md | ||
[25]: https://github.com/release-it/bumper | ||
[26]: https://github.com/release-it/conventional-changelog | ||
[27]: https://github.com/casmith/release-it-calver-plugin | ||
[28]: ./docs/git.md | ||
[29]: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases | ||
[30]: ./docs/github-releases.md | ||
[31]: https://docs.gitlab.com/ce/user/project/releases/ | ||
[32]: https://gitlab.com/profile/personal_access_tokens | ||
[33]: ./docs/environment-variables.md | ||
[34]: ./docs/gitlab-releases.md | ||
[35]: ./docs/changelog.md | ||
[36]: ./docs/pre-releases.md | ||
[37]: ./docs/plugins.md#execution-order | ||
[38]: ./docs/dry-runs.md | ||
[39]: https://github.com/release-it/keep-a-changelog | ||
[40]: https://github.com/release-it-plugins/lerna-changelog | ||
[41]: https://github.com/jcamp-code/release-it-changelogen | ||
[42]: https://github.com/unjs/changelogen | ||
[43]: https://github.com/release-it-plugins/workspaces | ||
[44]: https://github.com/grupoboticario/news-fragments | ||
[45]: https://github.com/j-ulrich/release-it-regex-bumper | ||
[46]: https://github.com/jcamp-code/release-it-dotnet | ||
[47]: https://www.npmjs.com/search?q=keywords:release-it-plugin | ||
[48]: ./docs/plugins.md | ||
[49]: ./docs/recipes/programmatic.md | ||
[50]: https://github.com/axios/axios | ||
[51]: https://github.com/blockchain/blockchain-wallet-v4-frontend | ||
[52]: https://github.com/callstack/react-native-paper | ||
[53]: https://github.com/ember-cli/ember-cli | ||
[54]: https://github.com/js-cookie/js-cookie | ||
[55]: https://github.com/metalsmith/metalsmith | ||
[56]: https://github.com/mozilla/readability | ||
[57]: https://github.com/pahen/madge | ||
[58]: https://github.com/redis/node-redis | ||
[59]: https://github.com/reduxjs/redux | ||
[60]: https://github.com/saleor/saleor | ||
[61]: https://github.com/Semantic-Org/Semantic-UI-React | ||
[62]: https://github.com/shipshapecode/shepherd | ||
[63]: https://github.com/StevenBlack/hosts | ||
[64]: https://github.com/swagger-api/swagger-ui | ||
[65]: https://github.com/swagger-api/swagger-editor | ||
[66]: https://github.com/tabler/tabler | ||
[67]: https://github.com/tabler/tabler-icons | ||
[68]: https://github.com/youzan/vant | ||
[69]: https://github.com/release-it/release-it/network/dependents | ||
[70]: https://github.com/search?q=path%3A**%2F.release-it.json&type=code | ||
[71]: ./CHANGELOG.md | ||
[72]: https://github.com/release-it/release-it/releases | ||
[73]: ./.github/CONTRIBUTING.md | ||
[74]: https://github.com/release-it/release-it/issues/new | ||
[75]: ./LICENSE |
239255
432