release-it 17.0.0 → 17.0.2
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 +133 -128
- package/lib/plugin/github/GitHub.js +7 -2
- package/package.json +23 -13
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@ system, and hooks to execute any command you need to test, build, and/or publish
|
|
|
19
19
|
|
|
20
20
|
[![Action Status][11]][10] [![npm version][13]][12]
|
|
21
21
|
|
|
22
|
+
Are you using release-it at work? Please consider [sponsoring me][14]!
|
|
23
|
+
|
|
22
24
|
## Installation
|
|
23
25
|
|
|
24
26
|
Although release-it is a **generic** release tool, most projects use it for projects with npm packages. The recommended
|
|
@@ -60,16 +62,16 @@ You will be prompted to select the new version, and more prompts will follow bas
|
|
|
60
62
|
|
|
61
63
|
## Experimental: knowledge base
|
|
62
64
|
|
|
63
|
-
You might want to ask your questions in the [Release It! knowledge base][
|
|
65
|
+
You might want to ask your questions in the [Release It! knowledge base][15] (powered by OpenAI and [7-docs][16]). This
|
|
64
66
|
is an experimental knowledge base, answers may be incorrect.
|
|
65
67
|
|
|
66
68
|
## Yarn
|
|
67
69
|
|
|
68
|
-
Using Yarn? Please see the [npm section on Yarn][
|
|
70
|
+
Using Yarn? Please see the [npm section on Yarn][17].
|
|
69
71
|
|
|
70
72
|
## Monorepos
|
|
71
73
|
|
|
72
|
-
Using a monorepo? Please see this [monorepo recipe][
|
|
74
|
+
Using a monorepo? Please see this [monorepo recipe][18].
|
|
73
75
|
|
|
74
76
|
## Global Installation
|
|
75
77
|
|
|
@@ -82,14 +84,14 @@ Per-project installation as shown above is recommended, but global installs are
|
|
|
82
84
|
|
|
83
85
|
Here's a list of interesting external resources:
|
|
84
86
|
|
|
85
|
-
- Video: [How to use GitHub Actions & Release-It to Easily Release Your Code][
|
|
86
|
-
- Article: [Monorepo Semantic Releases][
|
|
87
|
+
- Video: [How to use GitHub Actions & Release-It to Easily Release Your Code][19]
|
|
88
|
+
- Article: [Monorepo Semantic Releases][20] ([repo][21])
|
|
87
89
|
|
|
88
90
|
Want to add yours to the list? Just open a pull request!
|
|
89
91
|
|
|
90
92
|
## Configuration
|
|
91
93
|
|
|
92
|
-
Out of the box, release-it has sane defaults, and [plenty of options][
|
|
94
|
+
Out of the box, release-it has sane defaults, and [plenty of options][22] to configure it. Most projects use a
|
|
93
95
|
`.release-it.json` file in the project root, or a `release-it` property in `package.json`.
|
|
94
96
|
|
|
95
97
|
Here's a quick example `.release-it.json`:
|
|
@@ -105,7 +107,7 @@ Here's a quick example `.release-it.json`:
|
|
|
105
107
|
}
|
|
106
108
|
```
|
|
107
109
|
|
|
108
|
-
→ See [Configuration][
|
|
110
|
+
→ See [Configuration][23] for more details.
|
|
109
111
|
|
|
110
112
|
## Interactive vs. CI mode
|
|
111
113
|
|
|
@@ -123,15 +125,15 @@ Use `--only-version` to use a prompt only to determine the version, and automate
|
|
|
123
125
|
|
|
124
126
|
How does release-it determine the latest version?
|
|
125
127
|
|
|
126
|
-
1.
|
|
127
|
-
2.
|
|
128
|
-
3.
|
|
128
|
+
1. For projects with a `package.json`, its `version` will be used (see [npm][24] to skip this).
|
|
129
|
+
2. Otherwise, release-it uses the latest Git tag to determine which version should be released.
|
|
130
|
+
3. As a last resort, `0.0.0` will be used as the latest version.
|
|
129
131
|
|
|
130
132
|
Alternatively, a plugin can be used to override this (e.g. to manage a `VERSION` or `composer.json` file):
|
|
131
133
|
|
|
132
|
-
- [@release-it/bumper][
|
|
133
|
-
- [@release-it/conventional-changelog][
|
|
134
|
-
- [release-it-calver-plugin][
|
|
134
|
+
- [@release-it/bumper][25] to read from or bump the version in any file
|
|
135
|
+
- [@release-it/conventional-changelog][26] to get a recommended bump based on commit messages
|
|
136
|
+
- [release-it-calver-plugin][27] to use CalVer (Calendar Versioning)
|
|
135
137
|
|
|
136
138
|
Add the `--release-version` flag to print the **next** version without releasing anything.
|
|
137
139
|
|
|
@@ -140,35 +142,35 @@ Add the `--release-version` flag to print the **next** version without releasing
|
|
|
140
142
|
Git projects are supported well by release-it, automating the tasks to stage, commit, tag and push releases to any Git
|
|
141
143
|
remote.
|
|
142
144
|
|
|
143
|
-
→ See [Git][
|
|
145
|
+
→ See [Git][28] for more details.
|
|
144
146
|
|
|
145
147
|
## GitHub Releases
|
|
146
148
|
|
|
147
149
|
GitHub projects can have releases attached to Git tags, containing release notes and assets. There are two ways to add
|
|
148
|
-
[GitHub releases][
|
|
150
|
+
[GitHub releases][29] in your release-it flow:
|
|
149
151
|
|
|
150
|
-
1.
|
|
151
|
-
2.
|
|
152
|
+
1. Automated (requires a `GITHUB_TOKEN`)
|
|
153
|
+
2. Manual (using the GitHub web interface with pre-populated fields)
|
|
152
154
|
|
|
153
|
-
→ See [GitHub Releases][
|
|
155
|
+
→ See [GitHub Releases][30] for more details.
|
|
154
156
|
|
|
155
157
|
## GitLab Releases
|
|
156
158
|
|
|
157
159
|
GitLab projects can have releases attached to Git tags, containing release notes and assets. To automate [GitLab
|
|
158
|
-
releases][
|
|
160
|
+
releases][31]:
|
|
159
161
|
|
|
160
162
|
- Configure `gitlab.release: true`
|
|
161
|
-
- Obtain a [personal access token][
|
|
162
|
-
- Make sure the token is [available as an environment variable][
|
|
163
|
+
- Obtain a [personal access token][32] (release-it only needs the "api" scope).
|
|
164
|
+
- Make sure the token is [available as an environment variable][33].
|
|
163
165
|
|
|
164
|
-
→ See [GitLab Releases][
|
|
166
|
+
→ See [GitLab Releases][34] for more details.
|
|
165
167
|
|
|
166
168
|
## Changelog
|
|
167
169
|
|
|
168
170
|
By default, release-it generates a changelog, to show and help select a version for the new release. Additionally, this
|
|
169
171
|
changelog serves as the release notes for the GitHub or GitLab release.
|
|
170
172
|
|
|
171
|
-
The [default command][
|
|
173
|
+
The [default command][22] is based on `git log ...`. This setting (`git.changelog`) can be overridden. To further
|
|
172
174
|
customize the release notes for the GitHub or GitLab release, there's `github.releaseNotes` or `gitlab.releaseNotes`.
|
|
173
175
|
Make sure any of these commands output the changelog to `stdout`. Note that release-it by default is agnostic to commit
|
|
174
176
|
message conventions. Plugins are available for:
|
|
@@ -180,14 +182,14 @@ message conventions. Plugins are available for:
|
|
|
180
182
|
|
|
181
183
|
To print the changelog without releasing anything, add the `--changelog` flag.
|
|
182
184
|
|
|
183
|
-
→ See [Changelog][
|
|
185
|
+
→ See [Changelog][35] for more details.
|
|
184
186
|
|
|
185
187
|
## Publish to npm
|
|
186
188
|
|
|
187
189
|
With a `package.json` in the current directory, release-it will let `npm` bump the version in `package.json` (and
|
|
188
190
|
`package-lock.json` if present), and publish to the npm registry.
|
|
189
191
|
|
|
190
|
-
→ See [Publish to npm][
|
|
192
|
+
→ See [Publish to npm][24] for more details.
|
|
191
193
|
|
|
192
194
|
## Manage pre-releases
|
|
193
195
|
|
|
@@ -195,7 +197,7 @@ With release-it, it's easy to create pre-releases: a version of your software th
|
|
|
195
197
|
it's not in the stable semver range yet. Often "alpha", "beta", and "rc" (release candidate) are used as identifiers for
|
|
196
198
|
pre-releases. An example pre-release version is `2.0.0-beta.0`.
|
|
197
199
|
|
|
198
|
-
→ See [Manage pre-releases][
|
|
200
|
+
→ See [Manage pre-releases][36] for more details.
|
|
199
201
|
|
|
200
202
|
## Update or re-run existing releases
|
|
201
203
|
|
|
@@ -225,7 +227,7 @@ Use the optional `:plugin` part in the middle to hook into a life cycle method e
|
|
|
225
227
|
The core plugins include `version`, `git`, `npm`, `github`, `gitlab`.
|
|
226
228
|
|
|
227
229
|
Note that hooks like `after:git:release` will not run when either the `git push` failed, or when it is configured not to
|
|
228
|
-
be executed (e.g. `git.push: false`). See [execution order][
|
|
230
|
+
be executed (e.g. `git.push: false`). See [execution order][37] for more details on execution order of plugin lifecycle
|
|
229
231
|
methods.
|
|
230
232
|
|
|
231
233
|
All commands can use configuration variables (like template strings). An array of commands can also be provided, they
|
|
@@ -243,7 +245,7 @@ will run one after another. Some example release-it configuration:
|
|
|
243
245
|
}
|
|
244
246
|
```
|
|
245
247
|
|
|
246
|
-
The variables can be found in the [default configuration][
|
|
248
|
+
The variables can be found in the [default configuration][22]. Additionally, the following variables are exposed:
|
|
247
249
|
|
|
248
250
|
```text
|
|
249
251
|
version
|
|
@@ -275,7 +277,7 @@ Using Inquirer.js inside custom hook scripts might cause issues (since release-i
|
|
|
275
277
|
|
|
276
278
|
Use `--dry-run` to show the interactivity and the commands it _would_ execute.
|
|
277
279
|
|
|
278
|
-
→ See [Dry Runs][
|
|
280
|
+
→ See [Dry Runs][38] for more details.
|
|
279
281
|
|
|
280
282
|
## Troubleshooting & debugging
|
|
281
283
|
|
|
@@ -291,64 +293,66 @@ Since v11, release-it can be extended in many, many ways. Here are some plugins:
|
|
|
291
293
|
|
|
292
294
|
| Plugin | Description |
|
|
293
295
|
| ----------------------------------------- | ----------------------------------------------------------------------------- |
|
|
294
|
-
| [@release-it/bumper][
|
|
295
|
-
| [@release-it/conventional-changelog][
|
|
296
|
-
| [@release-it/keep-a-changelog][
|
|
297
|
-
| [@release-it-plugins/lerna-changelog][
|
|
298
|
-
| [@jcamp-code/release-it-changelogen][
|
|
299
|
-
| [@release-it-plugins/workspaces][
|
|
300
|
-
| [release-it-calver-plugin][
|
|
301
|
-
| [@grupoboticario/news-fragments][
|
|
302
|
-
| [@j-ulrich/release-it-regex-bumper][
|
|
303
|
-
| [@jcamp-code/release-it-dotnet][
|
|
296
|
+
| [@release-it/bumper][25] | Read & write the version from/to any file |
|
|
297
|
+
| [@release-it/conventional-changelog][26] | Provides recommended bump, conventional-changelog, and updates `CHANGELOG.md` |
|
|
298
|
+
| [@release-it/keep-a-changelog][39] | Maintain CHANGELOG.md using the Keep a Changelog standards |
|
|
299
|
+
| [@release-it-plugins/lerna-changelog][40] | Integrates lerna-changelog into the release-it pipeline |
|
|
300
|
+
| [@jcamp-code/release-it-changelogen][41] | Use [@unjs/changelogen][42] for versioning and changelog |
|
|
301
|
+
| [@release-it-plugins/workspaces][43] | Releases each of your projects configured workspaces |
|
|
302
|
+
| [release-it-calver-plugin][27] | Enables Calendar Versioning (calver) with release-it |
|
|
303
|
+
| [@grupoboticario/news-fragments][44] | An easy way to generate your changelog file |
|
|
304
|
+
| [@j-ulrich/release-it-regex-bumper][45] | Regular expression based version read/write plugin for release-it |
|
|
305
|
+
| [@jcamp-code/release-it-dotnet][46] | Use .csproj or .props file for versioning, automate NuGet publishing |
|
|
304
306
|
|
|
305
307
|
Internally, release-it uses its own plugin architecture (for Git, GitHub, GitLab, npm).
|
|
306
308
|
|
|
307
|
-
→ See all [release-it plugins on npm][
|
|
309
|
+
→ See all [release-it plugins on npm][47].
|
|
308
310
|
|
|
309
|
-
→ See [plugins][
|
|
311
|
+
→ See [plugins][48] for documentation to write plugins.
|
|
310
312
|
|
|
311
313
|
## Use release-it programmatically
|
|
312
314
|
|
|
313
315
|
While mostly used as a CLI tool, release-it can be used as a dependency to integrate in your own scripts. See [use
|
|
314
|
-
release-it programmatically][
|
|
316
|
+
release-it programmatically][49] for example code.
|
|
315
317
|
|
|
316
318
|
## Example projects using release-it
|
|
317
319
|
|
|
318
|
-
- [axios/axios][
|
|
319
|
-
- [blockchain/blockchain-wallet-v4-frontend][
|
|
320
|
-
- [callstack/react-native-paper][
|
|
321
|
-
- [ember-cli/ember-cli][
|
|
322
|
-
- [js-cookie/js-cookie][
|
|
323
|
-
- [metalsmith/metalsmith][
|
|
324
|
-
- [mozilla/readability][
|
|
325
|
-
- [pahen/madge][
|
|
326
|
-
- [redis/node-redis][
|
|
327
|
-
- [reduxjs/redux][
|
|
328
|
-
- [saleor/saleor][
|
|
329
|
-
- [Semantic-Org/Semantic-UI-React][
|
|
330
|
-
- [shipshapecode/shepherd][
|
|
331
|
-
- [StevenBlack/hosts][
|
|
332
|
-
- [swagger-api/swagger-ui][
|
|
333
|
-
- [tabler/tabler][
|
|
334
|
-
- [youzan/vant][
|
|
335
|
-
- [Repositories that depend on release-it][
|
|
336
|
-
- GitHub search for [path:\*\*/.release-it.json][
|
|
320
|
+
- [axios/axios][50]
|
|
321
|
+
- [blockchain/blockchain-wallet-v4-frontend][51]
|
|
322
|
+
- [callstack/react-native-paper][52]
|
|
323
|
+
- [ember-cli/ember-cli][53]
|
|
324
|
+
- [js-cookie/js-cookie][54]
|
|
325
|
+
- [metalsmith/metalsmith][55]
|
|
326
|
+
- [mozilla/readability][56]
|
|
327
|
+
- [pahen/madge][57]
|
|
328
|
+
- [redis/node-redis][58]
|
|
329
|
+
- [reduxjs/redux][59]
|
|
330
|
+
- [saleor/saleor][60]
|
|
331
|
+
- [Semantic-Org/Semantic-UI-React][61]
|
|
332
|
+
- [shipshapecode/shepherd][62]
|
|
333
|
+
- [StevenBlack/hosts][63]
|
|
334
|
+
- [swagger-api/swagger-ui][64] + [swagger-editor][65]
|
|
335
|
+
- [tabler/tabler][66] + [tabler-icons][67]
|
|
336
|
+
- [youzan/vant][68]
|
|
337
|
+
- [Repositories that depend on release-it][69]
|
|
338
|
+
- GitHub search for [path:\*\*/.release-it.json][70]
|
|
337
339
|
|
|
338
340
|
## Legacy Node.js
|
|
339
341
|
|
|
340
|
-
The latest major version is
|
|
341
|
-
environments running Node.js v14. Also see [CHANGELOG.md][
|
|
342
|
+
The latest major version is v17, supporting Node.js 18 and up (as Node.js v16 is EOL). The previous major version was
|
|
343
|
+
v16, supporting Node.js 16. Use release-it v15 for environments running Node.js v14. Also see [CHANGELOG.md][71].
|
|
342
344
|
|
|
343
345
|
## Links
|
|
344
346
|
|
|
345
|
-
- See [CHANGELOG.md][
|
|
346
|
-
- To **contribute**, please read [CONTRIBUTING.md][
|
|
347
|
-
- Please [open an issue][
|
|
347
|
+
- See [CHANGELOG.md][71] for major/breaking updates, and [releases][72] for a detailed version history.
|
|
348
|
+
- To **contribute**, please read [CONTRIBUTING.md][73] first.
|
|
349
|
+
- Please [open an issue][74] if anything is missing or unclear in this documentation.
|
|
348
350
|
|
|
349
351
|
## License
|
|
350
352
|
|
|
351
|
-
[MIT][
|
|
353
|
+
[MIT][75]
|
|
354
|
+
|
|
355
|
+
Are you using release-it at work? Please consider [sponsoring me][14]!
|
|
352
356
|
|
|
353
357
|
[1]: #git
|
|
354
358
|
[2]: #hooks
|
|
@@ -363,64 +367,65 @@ environments running Node.js v14. Also see [CHANGELOG.md][67].
|
|
|
363
367
|
[11]: https://github.com/release-it/release-it/workflows/Cross-OS%20Tests/badge.svg
|
|
364
368
|
[12]: https://www.npmjs.com/package/release-it
|
|
365
369
|
[13]: https://badge.fury.io/js/release-it.svg
|
|
366
|
-
[14]: https://
|
|
367
|
-
[15]: https://
|
|
368
|
-
[16]:
|
|
369
|
-
[17]: ./docs/
|
|
370
|
-
[18]:
|
|
371
|
-
[19]: https://
|
|
372
|
-
[20]: https://
|
|
373
|
-
[21]:
|
|
374
|
-
[22]: ./
|
|
375
|
-
[23]: ./docs/
|
|
376
|
-
[24]:
|
|
377
|
-
[25]: https://github.com/release-it/
|
|
378
|
-
[26]: https://github.com/
|
|
379
|
-
[27]:
|
|
380
|
-
[28]:
|
|
381
|
-
[29]:
|
|
382
|
-
[30]:
|
|
383
|
-
[31]: https://gitlab.com/
|
|
384
|
-
[32]:
|
|
385
|
-
[33]: ./docs/
|
|
386
|
-
[34]: ./docs/
|
|
387
|
-
[35]: ./docs/
|
|
388
|
-
[36]: ./docs/
|
|
389
|
-
[37]: ./docs/
|
|
390
|
-
[38]:
|
|
391
|
-
[39]: https://github.com/release-it
|
|
392
|
-
[40]: https://github.com/release-it-plugins/
|
|
393
|
-
[41]: https://github.com/
|
|
394
|
-
[42]: https://github.com/
|
|
395
|
-
[43]: https://
|
|
396
|
-
[44]:
|
|
397
|
-
[45]:
|
|
398
|
-
[46]: https://github.com/
|
|
399
|
-
[47]: https://
|
|
400
|
-
[48]:
|
|
401
|
-
[49]:
|
|
402
|
-
[50]: https://github.com/
|
|
403
|
-
[51]: https://github.com/
|
|
404
|
-
[52]: https://github.com/
|
|
405
|
-
[53]: https://github.com/
|
|
406
|
-
[54]: https://github.com/
|
|
407
|
-
[55]: https://github.com/
|
|
408
|
-
[56]: https://github.com/
|
|
409
|
-
[57]: https://github.com/
|
|
410
|
-
[58]: https://github.com/
|
|
411
|
-
[59]: https://github.com/
|
|
412
|
-
[60]: https://github.com/
|
|
413
|
-
[61]: https://github.com/
|
|
414
|
-
[62]: https://github.com/
|
|
415
|
-
[63]: https://github.com/
|
|
416
|
-
[64]: https://github.com/
|
|
417
|
-
[65]: https://github.com/
|
|
418
|
-
[66]: https://github.com/
|
|
419
|
-
[67]:
|
|
420
|
-
[68]: https://github.com/
|
|
421
|
-
[69]:
|
|
422
|
-
[70]: https://github.com/release-it
|
|
423
|
-
[71]: ./
|
|
424
|
-
[72]: https://github.com/
|
|
425
|
-
[73]:
|
|
426
|
-
[74]: https://github.com/
|
|
370
|
+
[14]: https://github.com/sponsors/webpro
|
|
371
|
+
[15]: https://release-it.deno.dev
|
|
372
|
+
[16]: https://github.com/7-docs/7-docs
|
|
373
|
+
[17]: ./docs/npm.md#yarn
|
|
374
|
+
[18]: ./docs/recipes/monorepo.md
|
|
375
|
+
[19]: https://www.youtube.com/watch?v=7pBcuT7j_A0
|
|
376
|
+
[20]: https://medium.com/valtech-ch/monorepo-semantic-releases-db114811efa5
|
|
377
|
+
[21]: https://github.com/b12k/monorepo-semantic-releases
|
|
378
|
+
[22]: ./config/release-it.json
|
|
379
|
+
[23]: ./docs/configuration.md
|
|
380
|
+
[24]: ./docs/npm.md
|
|
381
|
+
[25]: https://github.com/release-it/bumper
|
|
382
|
+
[26]: https://github.com/release-it/conventional-changelog
|
|
383
|
+
[27]: https://github.com/casmith/release-it-calver-plugin
|
|
384
|
+
[28]: ./docs/git.md
|
|
385
|
+
[29]: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases
|
|
386
|
+
[30]: ./docs/github-releases.md
|
|
387
|
+
[31]: https://docs.gitlab.com/ce/user/project/releases/
|
|
388
|
+
[32]: https://gitlab.com/profile/personal_access_tokens
|
|
389
|
+
[33]: ./docs/environment-variables.md
|
|
390
|
+
[34]: ./docs/gitlab-releases.md
|
|
391
|
+
[35]: ./docs/changelog.md
|
|
392
|
+
[36]: ./docs/pre-releases.md
|
|
393
|
+
[37]: ./docs/plugins.md#execution-order
|
|
394
|
+
[38]: ./docs/dry-runs.md
|
|
395
|
+
[39]: https://github.com/release-it/keep-a-changelog
|
|
396
|
+
[40]: https://github.com/release-it-plugins/lerna-changelog
|
|
397
|
+
[41]: https://github.com/jcamp-code/release-it-changelogen
|
|
398
|
+
[42]: https://github.com/unjs/changelogen
|
|
399
|
+
[43]: https://github.com/release-it-plugins/workspaces
|
|
400
|
+
[44]: https://github.com/grupoboticario/news-fragments
|
|
401
|
+
[45]: https://github.com/j-ulrich/release-it-regex-bumper
|
|
402
|
+
[46]: https://github.com/jcamp-code/release-it-dotnet
|
|
403
|
+
[47]: https://www.npmjs.com/search?q=keywords:release-it-plugin
|
|
404
|
+
[48]: ./docs/plugins.md
|
|
405
|
+
[49]: ./docs/recipes/programmatic.md
|
|
406
|
+
[50]: https://github.com/axios/axios
|
|
407
|
+
[51]: https://github.com/blockchain/blockchain-wallet-v4-frontend
|
|
408
|
+
[52]: https://github.com/callstack/react-native-paper
|
|
409
|
+
[53]: https://github.com/ember-cli/ember-cli
|
|
410
|
+
[54]: https://github.com/js-cookie/js-cookie
|
|
411
|
+
[55]: https://github.com/metalsmith/metalsmith
|
|
412
|
+
[56]: https://github.com/mozilla/readability
|
|
413
|
+
[57]: https://github.com/pahen/madge
|
|
414
|
+
[58]: https://github.com/redis/node-redis
|
|
415
|
+
[59]: https://github.com/reduxjs/redux
|
|
416
|
+
[60]: https://github.com/saleor/saleor
|
|
417
|
+
[61]: https://github.com/Semantic-Org/Semantic-UI-React
|
|
418
|
+
[62]: https://github.com/shipshapecode/shepherd
|
|
419
|
+
[63]: https://github.com/StevenBlack/hosts
|
|
420
|
+
[64]: https://github.com/swagger-api/swagger-ui
|
|
421
|
+
[65]: https://github.com/swagger-api/swagger-editor
|
|
422
|
+
[66]: https://github.com/tabler/tabler
|
|
423
|
+
[67]: https://github.com/tabler/tabler-icons
|
|
424
|
+
[68]: https://github.com/youzan/vant
|
|
425
|
+
[69]: https://github.com/release-it/release-it/network/dependents
|
|
426
|
+
[70]: https://github.com/search?q=path%3A**%2F.release-it.json&type=code
|
|
427
|
+
[71]: ./CHANGELOG.md
|
|
428
|
+
[72]: https://github.com/release-it/release-it/releases
|
|
429
|
+
[73]: ./.github/CONTRIBUTING.md
|
|
430
|
+
[74]: https://github.com/release-it/release-it/issues/new
|
|
431
|
+
[75]: ./LICENSE
|
|
@@ -371,12 +371,12 @@ class GitHub extends Release {
|
|
|
371
371
|
async commentOnResolvedItems() {
|
|
372
372
|
const { isDryRun } = this.config;
|
|
373
373
|
const { owner, project: repo } = this.getContext('repo');
|
|
374
|
-
const
|
|
374
|
+
const changelog = await this.getChangelog();
|
|
375
375
|
const { comments } = this.options;
|
|
376
376
|
const { submit, issue, pr } = comments;
|
|
377
377
|
const context = this.getContext();
|
|
378
378
|
|
|
379
|
-
if (!submit || !changelog
|
|
379
|
+
if (!submit || !changelog) return;
|
|
380
380
|
|
|
381
381
|
const shas = getCommitsFromChangelog(changelog);
|
|
382
382
|
const searchResults = await Promise.all(searchQueries(this.client, owner, repo, shas));
|
|
@@ -390,6 +390,11 @@ class GitHub extends Release {
|
|
|
390
390
|
const comment = format(format(type === 'pr' ? pr : issue, context), context);
|
|
391
391
|
const url = `${host}/${owner}/${repo}/${type === 'pr' ? 'pull' : 'issues'}/${number}`;
|
|
392
392
|
|
|
393
|
+
if (isDryRun) {
|
|
394
|
+
this.log.exec(`octokit issues.createComment (${url})`, { isDryRun });
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
|
|
393
398
|
try {
|
|
394
399
|
await this.client.issues.createComment({ owner, repo, issue_number: number, body: comment });
|
|
395
400
|
this.log.log(`● Commented on ${url}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.2",
|
|
4
4
|
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -32,6 +32,16 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/release-it/release-it#readme",
|
|
34
34
|
"bugs": "https://github.com/release-it/release-it/issues",
|
|
35
|
+
"funding": [
|
|
36
|
+
{
|
|
37
|
+
"type": "github",
|
|
38
|
+
"url": "https://github.com/sponsors/webpro"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "opencollective",
|
|
42
|
+
"url": "https://opencollective.com/webpro"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
35
45
|
"bin": {
|
|
36
46
|
"release-it": "bin/release-it.js"
|
|
37
47
|
},
|
|
@@ -65,9 +75,9 @@
|
|
|
65
75
|
"@octokit/rest": "20.0.2",
|
|
66
76
|
"async-retry": "1.3.3",
|
|
67
77
|
"chalk": "5.3.0",
|
|
68
|
-
"cosmiconfig": "
|
|
78
|
+
"cosmiconfig": "9.0.0",
|
|
69
79
|
"execa": "8.0.1",
|
|
70
|
-
"git-url-parse": "
|
|
80
|
+
"git-url-parse": "14.0.0",
|
|
71
81
|
"globby": "14.0.0",
|
|
72
82
|
"got": "13.0.0",
|
|
73
83
|
"inquirer": "9.2.12",
|
|
@@ -77,9 +87,9 @@
|
|
|
77
87
|
"mime-types": "2.1.35",
|
|
78
88
|
"new-github-release-url": "2.0.0",
|
|
79
89
|
"node-fetch": "3.3.2",
|
|
80
|
-
"open": "
|
|
81
|
-
"ora": "
|
|
82
|
-
"os-name": "
|
|
90
|
+
"open": "10.0.3",
|
|
91
|
+
"ora": "8.0.1",
|
|
92
|
+
"os-name": "6.0.0",
|
|
83
93
|
"promise.allsettled": "1.0.7",
|
|
84
94
|
"proxy-agent": "6.3.1",
|
|
85
95
|
"semver": "7.5.4",
|
|
@@ -92,17 +102,17 @@
|
|
|
92
102
|
"devDependencies": {
|
|
93
103
|
"@octokit/request-error": "5.0.1",
|
|
94
104
|
"ava": "5.3.1",
|
|
95
|
-
"eslint": "8.
|
|
96
|
-
"eslint-config-prettier": "9.
|
|
105
|
+
"eslint": "8.56.0",
|
|
106
|
+
"eslint-config-prettier": "9.1.0",
|
|
97
107
|
"eslint-plugin-ava": "14.0.0",
|
|
98
|
-
"eslint-plugin-import": "2.29.
|
|
99
|
-
"eslint-plugin-prettier": "5.
|
|
108
|
+
"eslint-plugin-import": "2.29.1",
|
|
109
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
100
110
|
"fs-monkey": "1.0.5",
|
|
101
|
-
"knip": "2.
|
|
111
|
+
"knip": "4.2.1",
|
|
102
112
|
"memfs": "4.6.0",
|
|
103
113
|
"mock-stdio": "1.0.3",
|
|
104
|
-
"nock": "13.
|
|
105
|
-
"prettier": "3.
|
|
114
|
+
"nock": "13.5.0",
|
|
115
|
+
"prettier": "3.2.4",
|
|
106
116
|
"remark-cli": "12.0.0",
|
|
107
117
|
"remark-preset-webpro": "1.0.0",
|
|
108
118
|
"sinon": "17.0.1",
|