release-it 15.10.0 → 15.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -68
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,19 +20,6 @@ system, and hooks to execute any command you need to test, build, and/or publish
|
|
|
20
20
|
[](https://github.com/release-it/release-it/actions)
|
|
21
21
|
[](https://www.npmjs.com/package/release-it)
|
|
22
22
|
|
|
23
|
-
## Announcement
|
|
24
|
-
|
|
25
|
-
The latest major version is v15, supporting Node.js 14 and up (as Node.js v12 is EOL). Use release-it v14 for
|
|
26
|
-
environments running Node.js v10 and v12. Also see [CHANGELOG.md](./CHANGELOG.md).
|
|
27
|
-
|
|
28
|
-
## Links
|
|
29
|
-
|
|
30
|
-
- See [CHANGELOG.md](./CHANGELOG.md) for major/breaking updates, and
|
|
31
|
-
[releases](https://github.com/release-it/release-it/releases) for a detailed version history.
|
|
32
|
-
- To **contribute**, please read [CONTRIBUTING.md](./.github/CONTRIBUTING.md) first.
|
|
33
|
-
- Please [open an issue](https://github.com/release-it/release-it/issues/new) if anything is missing or unclear in this
|
|
34
|
-
documentation.
|
|
35
|
-
|
|
36
23
|
## Installation
|
|
37
24
|
|
|
38
25
|
Although release-it is a **generic** release tool, most projects use it for projects with npm packages. The recommended
|
|
@@ -56,66 +43,45 @@ npm install -D release-it
|
|
|
56
43
|
"release": "release-it"
|
|
57
44
|
},
|
|
58
45
|
"devDependencies": {
|
|
59
|
-
"release-it": "
|
|
46
|
+
"release-it": "^15.10.0"
|
|
60
47
|
}
|
|
61
48
|
}
|
|
62
49
|
```
|
|
63
50
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm run release
|
|
68
|
-
npm run release -- minor --ci
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Global Installation
|
|
72
|
-
|
|
73
|
-
#### Using npx or npm
|
|
51
|
+
## Usage
|
|
74
52
|
|
|
75
|
-
|
|
53
|
+
Run release-it from the root of the project using either `npm run` or `npx`:
|
|
76
54
|
|
|
77
55
|
```bash
|
|
56
|
+
npm run release
|
|
78
57
|
npx release-it
|
|
79
58
|
```
|
|
80
59
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
npm install -g release-it
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
#### Using Homebrew
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
brew install release-it
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Usage
|
|
94
|
-
|
|
95
|
-
Release a new version:
|
|
60
|
+
You will be prompted to select the new version, and more prompts will follow based on your configuration.
|
|
96
61
|
|
|
97
|
-
|
|
98
|
-
release-it
|
|
99
|
-
```
|
|
62
|
+
## Yarn
|
|
100
63
|
|
|
101
|
-
|
|
64
|
+
Using Yarn? Please see the [npm section on Yarn](./docs/npm.md#yarn).
|
|
102
65
|
|
|
103
|
-
|
|
66
|
+
## Global Installation
|
|
104
67
|
|
|
105
|
-
|
|
68
|
+
Per-project installation as shown above is recommended, but global installs are supported as well:
|
|
106
69
|
|
|
107
|
-
|
|
70
|
+
- From npm: `npm install -g release-it`
|
|
71
|
+
- From Homebrew: `brew install release-it`
|
|
108
72
|
|
|
109
|
-
|
|
73
|
+
## GitHub Actions
|
|
110
74
|
|
|
111
|
-
|
|
75
|
+
Want to use release-it with GitHub Actions to fully automate the whole process? Enjoy this great walk-through:
|
|
76
|
+
[How to use GitHub Actions & Release-It to Easily Release Your Code](https://www.youtube.com/watch?v=7pBcuT7j_A0) (by
|
|
77
|
+
[David from Kodaps](https://twitter.com/KodapsAcademy)).
|
|
112
78
|
|
|
113
|
-
|
|
79
|
+
→ See [Continuous Integration environments](./docs/ci.md) for more details.
|
|
114
80
|
|
|
115
81
|
## Configuration
|
|
116
82
|
|
|
117
83
|
Out of the box, release-it has sane defaults, and [plenty of options](./config/release-it.json) to configure it. Most
|
|
118
|
-
projects use a `.release-it.json` in the project root, or a `release-it` property in `package.json`.
|
|
84
|
+
projects use a `.release-it.json` file in the project root, or a `release-it` property in `package.json`.
|
|
119
85
|
|
|
120
86
|
→ See [Configuration](./docs/configuration.md) for more details.
|
|
121
87
|
|
|
@@ -198,7 +164,8 @@ changelog serves as the release notes for the GitHub or GitLab release.
|
|
|
198
164
|
|
|
199
165
|
The [default command](./config/release-it.json) is based on `git log ...`. This setting (`git.changelog`) can be
|
|
200
166
|
overridden. To further customize the release notes for the GitHub or GitLab release, there's `github.releaseNotes` or
|
|
201
|
-
`gitlab.releaseNotes`. Make sure any of these commands output the changelog to `stdout`.
|
|
167
|
+
`gitlab.releaseNotes`. Make sure any of these commands output the changelog to `stdout`. Note that release-it by default
|
|
168
|
+
is agnostic to commit message conventions. Plugins are available for:
|
|
202
169
|
|
|
203
170
|
- GitHub and GitLab Releases
|
|
204
171
|
- auto-changelog
|
|
@@ -296,6 +263,24 @@ release-it --'hooks.after:release="echo Successfully released ${name} v${version
|
|
|
296
263
|
|
|
297
264
|
Using Inquirer.js inside custom hook scripts might cause issues (since release-it also uses this itself).
|
|
298
265
|
|
|
266
|
+
## Dry Runs
|
|
267
|
+
|
|
268
|
+
Use `--dry-run` to show the interactivity and the commands it _would_ execute.
|
|
269
|
+
|
|
270
|
+
→ See [Dry Runs](./docs/dry-runs.md) for more details.
|
|
271
|
+
|
|
272
|
+
To print the next version without releasing anything, add the `--release-version` flag.
|
|
273
|
+
|
|
274
|
+
To print the changelog without releasing anything, add the `--changelog` flag.
|
|
275
|
+
|
|
276
|
+
## Troubleshooting & debugging
|
|
277
|
+
|
|
278
|
+
- With `release-it --verbose` (or `-V`), release-it prints the output of every user-defined [hook](#hooks).
|
|
279
|
+
- With `release-it -VV`, release-it also prints the output of every internal command.
|
|
280
|
+
- Use `NODE_DEBUG=release-it:* release-it [...]` to print configuration and more error details.
|
|
281
|
+
|
|
282
|
+
Use `verbose: 2` in a configuration file to have the equivalent of `-VV` on the command line.
|
|
283
|
+
|
|
299
284
|
## Plugins
|
|
300
285
|
|
|
301
286
|
Since v11, release-it can be extended in many, many ways. Here are some plugins:
|
|
@@ -317,22 +302,6 @@ Internally, release-it uses its own plugin architecture (for Git, GitHub, GitLab
|
|
|
317
302
|
|
|
318
303
|
→ See [plugins](./docs/plugins.md) for documentation to write plugins.
|
|
319
304
|
|
|
320
|
-
## Distribution repository
|
|
321
|
-
|
|
322
|
-
Deprecated. Please see [distribution repository](./docs/recipes/distribution-repo.md) for more details.
|
|
323
|
-
|
|
324
|
-
## Metrics
|
|
325
|
-
|
|
326
|
-
In release-it v15, anonymous metrics have been removed from the codebase and no data is sent or stored anywhere.
|
|
327
|
-
|
|
328
|
-
## Troubleshooting & debugging
|
|
329
|
-
|
|
330
|
-
- With `release-it --verbose` (or `-V`), release-it prints the output of every user-defined [hook](#hooks).
|
|
331
|
-
- With `release-it -VV`, release-it also prints the output of every internal command.
|
|
332
|
-
- Use `NODE_DEBUG=release-it:* release-it [...]` to print configuration and more error details.
|
|
333
|
-
|
|
334
|
-
Use `verbose: 2` in a configuration file to have the equivalent of `-VV` on the command line.
|
|
335
|
-
|
|
336
305
|
## Use release-it programmatically
|
|
337
306
|
|
|
338
307
|
While mostly used as a CLI tool, release-it can be used as a dependency to integrate in your own scripts. See
|
|
@@ -361,6 +330,19 @@ While mostly used as a CLI tool, release-it can be used as a dependency to integ
|
|
|
361
330
|
- [Repositories that depend on release-it](https://github.com/release-it/release-it/network/dependents)
|
|
362
331
|
- GitHub search for [path:\*\*/.release-it.json](https://github.com/search?q=path%3A**%2F.release-it.json&type=code)
|
|
363
332
|
|
|
333
|
+
## Legacy Node.js
|
|
334
|
+
|
|
335
|
+
The latest major version is v15, supporting Node.js 14 and up (as Node.js v12 is EOL). Use release-it v14 for
|
|
336
|
+
environments running Node.js v10 and v12. Also see [CHANGELOG.md](./CHANGELOG.md).
|
|
337
|
+
|
|
338
|
+
## Links
|
|
339
|
+
|
|
340
|
+
- See [CHANGELOG.md](./CHANGELOG.md) for major/breaking updates, and
|
|
341
|
+
[releases](https://github.com/release-it/release-it/releases) for a detailed version history.
|
|
342
|
+
- To **contribute**, please read [CONTRIBUTING.md](./.github/CONTRIBUTING.md) first.
|
|
343
|
+
- Please [open an issue](https://github.com/release-it/release-it/issues/new) if anything is missing or unclear in this
|
|
344
|
+
documentation.
|
|
345
|
+
|
|
364
346
|
## License
|
|
365
347
|
|
|
366
348
|
[MIT](./LICENSE)
|