release-it 14.6.3 → 14.10.0

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 CHANGED
@@ -4,19 +4,18 @@
4
4
 
5
5
  <img align="right" src="./docs/assets/release-it.svg?raw=true" height="280">
6
6
 
7
- - Execute test & build commands
8
7
  - Bump version (in e.g. `package.json`)
9
8
  - [Git commit, tag, push](#git)
9
+ - Execute any (test or build) commands using [hooks](#hooks)
10
10
  - [Create release at GitHub](#github-releases) or [GitLab](#gitlab-releases)
11
11
  - [Generate changelog](#changelog)
12
12
  - [Publish to npm](#publish-to-npm)
13
13
  - [Manage pre-releases](#manage-pre-releases)
14
- - [Hooks](#hooks)
15
14
  - Extend with [plugins](#plugins)
16
15
  - Release from any [CI/CD environment](./docs/ci.md)
17
16
 
18
17
  Use release-it for version management and publish to anywhere with its versatile configuration, a powerful plugin
19
- system, and use hooks to execute any command you need to test, build, and/or publish your project.
18
+ system, and hooks to execute any command you need to test, build, and/or publish your project.
20
19
 
21
20
  [![Action Status](https://github.com/release-it/release-it/workflows/Cross-OS%20Tests/badge.svg)](https://github.com/release-it/release-it/actions)
22
21
  [![npm version](https://badge.fury.io/js/release-it.svg)](https://www.npmjs.com/package/release-it)
@@ -32,8 +31,9 @@ system, and use hooks to execute any command you need to test, build, and/or pub
32
31
 
33
32
  ## Installation
34
33
 
35
- Although release-it is a **generic** release tool, installation requires npm. A `package.json` file is not required. The
36
- recommended way to install release-it also adds basic configuration. Answer one or two questions and it's ready:
34
+ Although release-it is a **generic** release tool, installation requires npm. To use release-it, a `package.json` file
35
+ is not required. The recommended way to install release-it also adds basic configuration. Answer one or two questions
36
+ and it's ready:
37
37
 
38
38
  ```bash
39
39
  npm init release-it
@@ -86,39 +86,26 @@ Release a new version:
86
86
  release-it
87
87
  ```
88
88
 
89
- You will be prompted to select the new version, and more questions will follow based on your setup.
89
+ You will be prompted to select the new version, and more prompts will follow based on your setup.
90
90
 
91
- Make sure to run release-it from the root of the project to prevent potential issues.
91
+ Run release-it from the root of the project to prevent potential issues.
92
92
 
93
- ## Dry Run
93
+ ## Dry Runs
94
94
 
95
- To show the interactivity and the commands it _would_ execute:
95
+ Use `--dry-run` to show the interactivity and the commands it _would_ execute.
96
96
 
97
- ```bash
98
- release-it --dry-run
99
- ```
100
-
101
- Note: read-only commands are still executed (`$ ...`), while potentially writing/mutating commands are not (`! ...`):
97
+ → See [Dry Runs](./docs/dry-runs.md) for more details.
102
98
 
103
- ```bash
104
- $ git rev-parse --git-dir
105
- .git
106
- ! git add package.json
107
- ! git commit --message="Release 0.8.3"
108
- ```
99
+ To print the next version without releasing anything, add the `--release-version` flag.
109
100
 
110
101
  ## Configuration
111
102
 
112
- Out of the box, release-it has sane defaults, and [plenty of options](./config/release-it.json) to configure it. Put
113
- (only) the options to override in a configuration file. This is where release-it looks for configuration:
103
+ Out of the box, release-it has sane defaults, and [plenty of options](./config/release-it.json) to configure it. Most
104
+ projects use a `.release-it.json` in the project root, or a `release-it` property in `package.json`.
114
105
 
115
- - `.release-it.json`
116
- - `.release-it.js` (or `.cjs`; export the configuration object: `module.exports = {}`)
117
- - `.release-it.yaml` (or `.yml`)
118
- - `.release-it.toml`
119
- - `package.json` (in the `release-it` property)
106
+ See [Configuration](./docs/configuration.md) for more details.
120
107
 
121
- Use `--config` to use another path for the configuration file. An example `.release-it.json`:
108
+ Here's a quick example `.release-it.json`:
122
109
 
123
110
  ```json
124
111
  {
@@ -131,48 +118,6 @@ Use `--config` to use another path for the configuration file. An example `.rele
131
118
  }
132
119
  ```
133
120
 
134
- Or in a `release-it` property in `package.json`:
135
-
136
- ```json
137
- {
138
- "name": "my-package",
139
- "devDependencies": {
140
- "release-it": "*"
141
- },
142
- "release-it": {
143
- "github": {
144
- "release": true
145
- }
146
- }
147
- }
148
- ```
149
-
150
- Or use YAML in `.release-it.yml`:
151
-
152
- ```yaml
153
- git:
154
- requireCleanWorkingDir: false
155
- ```
156
-
157
- Or TOML in `.release-it.toml`:
158
-
159
- ```toml
160
- [hooks]
161
- "before:init" = "npm test"
162
- ```
163
-
164
- Any option can also be set on the command-line, and will have highest priority. Example:
165
-
166
- ```bash
167
- release-it minor --git.requireBranch=master --github.release
168
- ```
169
-
170
- Boolean arguments can be negated by using the `no-` prefix:
171
-
172
- ```bash
173
- release-it --no-npm.publish
174
- ```
175
-
176
121
  ## Interactive vs. CI mode
177
122
 
178
123
  By default, release-it is **interactive** and allows you to confirm each task before execution:
@@ -200,6 +145,8 @@ Alternatively, a plugin can be used to override this (e.g. to manage a `VERSION`
200
145
  based on commit messages
201
146
  - [release-it-calver-plugin](https://github.com/casmith/release-it-calver-plugin) to use CalVer (Calendar Versioning)
202
147
 
148
+ Add the `--release-version` flag to print the **next** version without releasing anything.
149
+
203
150
  ## Git
204
151
 
205
152
  Git projects are supported well by release-it, automating the tasks to stage, commit, tag and push releases to any Git
@@ -261,6 +208,16 @@ pre-releases. An example pre-release version is `2.0.0-beta.0`.
261
208
 
262
209
  → See [Manage pre-releases](./docs/pre-releases.md) for more details.
263
210
 
211
+ ## Update or re-run existing releases
212
+
213
+ Use `--no-increment` to not increment the lastest version and update an existing tag/version.
214
+
215
+ This may be helpful in some cases where the version was already incremented. Here's a few example scenarios:
216
+
217
+ - To update or publish a draft GitHub Release for an existing Git tag.
218
+ - Publishing to npm succeeded, but pushing the Git tag to the remote failed. Then use
219
+ `release-it --no-increment --no-npm` to skip the `npm publish` and try pushing the same Git tag again.
220
+
264
221
  ## Hooks
265
222
 
266
223
  Use script hooks to run shell commands at any moment during the release process (such as `before:init` or
@@ -339,13 +296,7 @@ Internally, release-it uses its own plugin architecture (for Git, GitHub, GitLab
339
296
 
340
297
  ## Distribution repository
341
298
 
342
- Some projects use a distribution repository. Generated files (such as compiled assets or documentation) can be
343
- distributed to a separate repository. Or to a separate branch, such as a `gh-pages`. Some examples include
344
- [shim repositories](https://github.com/components) and a separate
345
- [packaged Angular.js repository](https://github.com/angular/bower-angular) for distribution on npm and Bower.
346
-
347
- The `dist.repo` option was removed in v10, but similar setups can still be achieved. Please see the
348
- [distribution repository](./docs/recipes/distribution-repo.md) recipe for example configurations.
299
+ Deprecated. Please see [distribution repository](./docs/recipes/distribution-repo.md) for more details.
349
300
 
350
301
  ## Metrics
351
302
 
@@ -354,9 +305,9 @@ Use `--disable-metrics` to opt-out of sending some anonymous statistical data to
354
305
 
355
306
  ## Troubleshooting & debugging
356
307
 
357
- - With `release-it --verbose` (or `-V`), release-it prints every custom script/hook and its output.
358
- - With `release-it -VV`, release-it also prints every internal command and its output.
359
- - Prepend `DEBUG=release-it:* release-it [...]` to print configuration and more error details.
308
+ - With `release-it --verbose` (or `-V`), release-it prints the output of every user-defined [hook](#hooks).
309
+ - With `release-it -VV`, release-it also prints the output of every internal command.
310
+ - Use `DEBUG=release-it:* release-it [...]` to print configuration and more error details.
360
311
 
361
312
  Use `verbose: 2` in a configuration file to have the equivalent of `-VV` on the command line.
362
313
 
@@ -47,6 +47,7 @@
47
47
  "releaseNotes": null,
48
48
  "tokenRef": "GITLAB_TOKEN",
49
49
  "tokenHeader": "Private-Token",
50
+ "certificateAuthorityFile": null,
50
51
  "assets": null,
51
52
  "origin": null,
52
53
  "skipChecks": false
package/lib/cli.js CHANGED
@@ -14,9 +14,9 @@ const helpText = `Release It! v${pkg.version}
14
14
  -h --help Print this help
15
15
  -i --increment Increment "major", "minor", "patch", or "pre*" version; or specify version [default: "patch"]
16
16
  --ci No prompts, no user interaction; activated automatically in CI environments
17
- --only-version Prompt only version, no further interaction
17
+ --only-version Prompt only for version, no further interaction
18
18
  -v --version Print release-it version number
19
- -v --release-version Print version number to be released
19
+ --release-version Print version number to be released
20
20
  -V --verbose Verbose output (user hooks output)
21
21
  -VV Extra verbose output (also internal commands output)
22
22
 
package/lib/config.js CHANGED
@@ -120,7 +120,7 @@ class Config {
120
120
  }
121
121
 
122
122
  get isReleaseVersion() {
123
- return this.options['release-version'];
123
+ return Boolean(this.options['release-version']);
124
124
  }
125
125
 
126
126
  get isCollectMetrics() {
@@ -42,7 +42,7 @@ module.exports.getPlugins = async (config, container) => {
42
42
  const instance = new Plugin({ namespace, options: config.getContext(), container });
43
43
  debug({ namespace, options: instance.options });
44
44
  (await result).push(instance);
45
- disabledPlugins.push(..._.intersection(pluginNames, _.castArray(Plugin.disablePlugin())));
45
+ disabledPlugins.push(..._.intersection(pluginNames, _.castArray(Plugin.disablePlugin(options))));
46
46
  }
47
47
  return result;
48
48
  },
@@ -19,7 +19,8 @@ const DEFAULT_RETRY_MIN_TIMEOUT = 1000;
19
19
  const parseErrormsg = err => {
20
20
  let msg = err;
21
21
  if (err instanceof Error) {
22
- const { status, message, headers } = err;
22
+ const { status, message } = err;
23
+ const { headers } = err.response;
23
24
  msg = `${_.get(headers, 'status', status)} (${message})`;
24
25
  }
25
26
  return msg;
@@ -259,6 +260,7 @@ class GitHub extends Release {
259
260
  uploadAssets() {
260
261
  const { assets } = this.options;
261
262
  const { isReleased } = this.getContext();
263
+ const context = this.config.getContext();
262
264
  const { isDryRun } = this.config;
263
265
 
264
266
  this.log.exec('octokit repos.uploadReleaseAssets', assets, { isDryRun });
@@ -267,7 +269,9 @@ class GitHub extends Release {
267
269
  return true;
268
270
  }
269
271
 
270
- return globby(assets).then(files => {
272
+ const patterns = _.castArray(assets).map(pattern => format(pattern, context));
273
+
274
+ return globby(patterns).then(files => {
271
275
  if (!files.length) {
272
276
  this.log.warn(`octokit repos.uploadReleaseAssets: did not find "${assets}" relative to ${process.cwd()}`);
273
277
  }
@@ -3,6 +3,7 @@ const path = require('path');
3
3
  const got = require('got');
4
4
  const globby = require('globby');
5
5
  const FormData = require('form-data');
6
+ const _ = require('lodash');
6
7
  const Release = require('../GitRelease');
7
8
  const { format, e } = require('../../util');
8
9
  const prompts = require('./prompts');
@@ -16,6 +17,10 @@ class GitLab extends Release {
16
17
  super(...args);
17
18
  this.registerPrompts(prompts);
18
19
  this.assets = [];
20
+ const { certificateAuthorityFile } = this.options;
21
+ this.certificateAuthorityOption = certificateAuthorityFile
22
+ ? { https: { certificateAuthority: fs.readFileSync(certificateAuthorityFile) } }
23
+ : {};
19
24
  }
20
25
 
21
26
  get client() {
@@ -28,7 +33,8 @@ class GitLab extends Release {
28
33
  headers: {
29
34
  'user-agent': 'webpro/release-it',
30
35
  [tokenHeader]: this.token
31
- }
36
+ },
37
+ ...this.certificateAuthorityOption
32
38
  });
33
39
  return this._client;
34
40
  }
@@ -190,6 +196,7 @@ class GitLab extends Release {
190
196
  uploadAssets() {
191
197
  const { assets } = this.options;
192
198
  const { isDryRun } = this.config;
199
+ const context = this.config.getContext();
193
200
 
194
201
  this.log.exec('gitlab releases#uploadAssets', assets, { isDryRun });
195
202
 
@@ -197,7 +204,9 @@ class GitLab extends Release {
197
204
  return noop;
198
205
  }
199
206
 
200
- return globby(assets).then(files => {
207
+ const patterns = _.castArray(assets).map(pattern => format(pattern, context));
208
+
209
+ return globby(patterns).then(files => {
201
210
  if (!files.length) {
202
211
  this.log.warn(`gitlab releases#uploadAssets: could not find "${assets}" relative to ${process.cwd()}`);
203
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "14.6.3",
3
+ "version": "14.10.0",
4
4
  "description": "Generic CLI tool to automate versioning and package publishing related tasks.",
5
5
  "keywords": [
6
6
  "build",
@@ -58,24 +58,24 @@
58
58
  "license": "MIT",
59
59
  "dependencies": {
60
60
  "@iarna/toml": "2.2.5",
61
- "@octokit/rest": "18.5.3",
61
+ "@octokit/rest": "18.6.0",
62
62
  "async-retry": "1.3.1",
63
63
  "chalk": "4.1.1",
64
64
  "cosmiconfig": "7.0.0",
65
65
  "debug": "4.3.1",
66
66
  "deprecated-obj": "2.0.0",
67
- "execa": "5.0.0",
67
+ "execa": "5.1.1",
68
68
  "find-up": "5.0.0",
69
69
  "form-data": "4.0.0",
70
70
  "git-url-parse": "11.4.4",
71
- "globby": "11.0.3",
71
+ "globby": "11.0.4",
72
72
  "got": "11.8.2",
73
73
  "import-cwd": "3.0.0",
74
- "inquirer": "8.0.0",
74
+ "inquirer": "8.1.1",
75
75
  "is-ci": "3.0.0",
76
76
  "lodash": "4.17.21",
77
- "mime-types": "2.1.30",
78
- "ora": "5.4.0",
77
+ "mime-types": "2.1.31",
78
+ "ora": "5.4.1",
79
79
  "os-name": "4.0.0",
80
80
  "parse-json": "5.2.0",
81
81
  "semver": "7.3.5",
@@ -87,22 +87,22 @@
87
87
  "yargs-parser": "20.2.7"
88
88
  },
89
89
  "devDependencies": {
90
- "@octokit/request-error": "2.0.5",
90
+ "@octokit/request-error": "2.1.0",
91
91
  "ava": "3.15.0",
92
92
  "codecov": "3.8.2",
93
- "eslint": "7.26.0",
93
+ "eslint": "7.29.0",
94
94
  "eslint-config-prettier": "8.3.0",
95
95
  "eslint-plugin-ava": "12.0.0",
96
- "eslint-plugin-import": "2.22.1",
96
+ "eslint-plugin-import": "2.23.4",
97
97
  "eslint-plugin-prettier": "3.4.0",
98
98
  "markdown-toc": "1.2.0",
99
- "mock-fs": "4.14.0",
99
+ "mock-fs": "5.0.0",
100
100
  "mock-stdio": "1.0.3",
101
- "nock": "13.0.11",
101
+ "nock": "13.1.0",
102
102
  "nyc": "15.1.0",
103
- "prettier": "2.2.1",
103
+ "prettier": "2.3.1",
104
104
  "proxyquire": "2.1.3",
105
- "sinon": "10.0.1",
105
+ "sinon": "11.1.1",
106
106
  "strip-ansi": "6.0.0"
107
107
  },
108
108
  "engines": {
package/test/github.js CHANGED
@@ -16,6 +16,7 @@ const tokenRef = 'GITHUB_TOKEN';
16
16
  const pushRepo = 'git://github.com:user/repo';
17
17
  const host = 'github.com';
18
18
  const git = { changelog: null };
19
+ const requestErrorOptions = { request: { url: '', headers: {} }, response: { headers: {} } };
19
20
 
20
21
  test.serial('should validate token', async t => {
21
22
  const tokenRef = 'MY_GITHUB_TOKEN';
@@ -34,7 +35,6 @@ test.serial('should validate token', async t => {
34
35
  });
35
36
 
36
37
  test('should release and upload assets', async t => {
37
- const asset = 'file1';
38
38
  const options = {
39
39
  git,
40
40
  github: {
@@ -43,7 +43,7 @@ test('should release and upload assets', async t => {
43
43
  release: true,
44
44
  releaseName: 'Release ${tagName}',
45
45
  releaseNotes: 'echo Custom notes',
46
- assets: `test/resources/${asset}`
46
+ assets: 'test/resources/file-v${version}.txt'
47
47
  }
48
48
  };
49
49
  const github = factory(GitHub, { options });
@@ -53,7 +53,7 @@ test('should release and upload assets', async t => {
53
53
  interceptAuthentication();
54
54
  interceptCollaborator();
55
55
  interceptCreate({ body: { tag_name: '2.0.2', name: 'Release 2.0.2', body: 'Custom notes' } });
56
- interceptAsset({ body: asset });
56
+ interceptAsset({ body: '*' });
57
57
 
58
58
  await runTasks(github);
59
59
 
@@ -225,7 +225,7 @@ test('should throw for unauthenticated user', async t => {
225
225
  const options = { github: { tokenRef, pushRepo, host } };
226
226
  const github = factory(GitHub, { options });
227
227
  const stub = sinon.stub(github.client.users, 'getAuthenticated');
228
- stub.throws(new RequestError('Bad credentials', 401, { request: { url: '', headers: {} } }));
228
+ stub.throws(new RequestError('Bad credentials', 401, requestErrorOptions));
229
229
 
230
230
  await t.throwsAsync(runTasks(github), {
231
231
  message: /^Could not authenticate with GitHub using environment variable "GITHUB_TOKEN"/
@@ -240,7 +240,7 @@ test('should throw for non-collaborator', async t => {
240
240
  const options = { github: { tokenRef, pushRepo, host } };
241
241
  const github = factory(GitHub, { options });
242
242
  const stub = sinon.stub(github.client.repos, 'checkCollaborator');
243
- stub.throws(new RequestError('HttpError', 401, { request: { url: '', headers: {} } }));
243
+ stub.throws(new RequestError('HttpError', 401, requestErrorOptions));
244
244
 
245
245
  await t.throwsAsync(runTasks(github), { message: /^User john is not a collaborator for user\/repo/ });
246
246
 
@@ -271,7 +271,7 @@ test.serial('should skip authentication and collaborator checks when running on
271
271
  test('should handle octokit client error (without retries)', async t => {
272
272
  const github = factory(GitHub, { options: { github: { tokenRef, pushRepo, host } } });
273
273
  const stub = sinon.stub(github.client.repos, 'createRelease');
274
- stub.throws(new RequestError('Not found', 404, { request: { url: '', headers: {} } }));
274
+ stub.throws(new RequestError('Not found', 404, requestErrorOptions));
275
275
  interceptAuthentication();
276
276
  interceptCollaborator();
277
277
 
@@ -285,7 +285,7 @@ test('should handle octokit client error (with retries)', async t => {
285
285
  const options = { github: { tokenRef, pushRepo, host, retryMinTimeout: 0 } };
286
286
  const github = factory(GitHub, { options });
287
287
  const stub = sinon.stub(github.client.repos, 'createRelease');
288
- stub.throws(new RequestError('Request failed', 500, { request: { url: '', headers: {} } }));
288
+ stub.throws(new RequestError('Request failed', 500, requestErrorOptions));
289
289
  interceptAuthentication();
290
290
  interceptCollaborator();
291
291
 
@@ -310,7 +310,7 @@ test('should not call octokit client in dry run', async t => {
310
310
  const { isReleased, releaseUrl } = github.getContext();
311
311
  t.true(isReleased);
312
312
  t.is(releaseUrl, 'https://github.com/user/repo/releases/tag/v1.0.1');
313
- spy.restore();
313
+ spy.get.restore();
314
314
  exec.restore();
315
315
  });
316
316
 
package/test/gitlab.js CHANGED
@@ -48,7 +48,6 @@ test.serial('should support CI Job token header', async t => {
48
48
 
49
49
  test.serial('should upload assets and release', async t => {
50
50
  const pushRepo = 'https://gitlab.com/user/repo';
51
- const asset = 'file1';
52
51
  const options = {
53
52
  git: { pushRepo },
54
53
  gitlab: {
@@ -56,7 +55,7 @@ test.serial('should upload assets and release', async t => {
56
55
  release: true,
57
56
  releaseName: 'Release ${version}',
58
57
  releaseNotes: 'echo Custom notes',
59
- assets: `test/resources/${asset}`
58
+ assets: 'test/resources/file-v${version}.txt'
60
59
  }
61
60
  };
62
61
  const gitlab = factory(GitLab, { options });
@@ -73,8 +72,8 @@ test.serial('should upload assets and release', async t => {
73
72
  assets: {
74
73
  links: [
75
74
  {
76
- name: asset,
77
- url: `${pushRepo}/uploads/7e8bec1fe27cc46a4bc6a91b9e82a07c/${asset}`
75
+ name: 'file-v2.0.1.txt',
76
+ url: `${pushRepo}/uploads/7e8bec1fe27cc46a4bc6a91b9e82a07c/file-v2.0.1.txt`
78
77
  }
79
78
  ]
80
79
  }
@@ -83,7 +82,7 @@ test.serial('should upload assets and release', async t => {
83
82
 
84
83
  await runTasks(gitlab);
85
84
 
86
- t.is(gitlab.assets[0].url, `${pushRepo}/uploads/7e8bec1fe27cc46a4bc6a91b9e82a07c/${asset}`);
85
+ t.is(gitlab.assets[0].url, `${pushRepo}/uploads/7e8bec1fe27cc46a4bc6a91b9e82a07c/file-v2.0.1.txt`);
87
86
  const { isReleased, releaseUrl } = gitlab.getContext();
88
87
  t.true(isReleased);
89
88
  t.is(releaseUrl, `${pushRepo}/-/releases`);
@@ -192,7 +191,7 @@ test('should not make requests in dry run', async t => {
192
191
  t.is(gitlab.log.exec.args[2][0], 'gitlab releases#createRelease "R" (1.0.1)');
193
192
  t.true(isReleased);
194
193
  t.is(releaseUrl, `${pushRepo}/-/releases`);
195
- spy.restore();
194
+ spy.get.restore();
196
195
  });
197
196
 
198
197
  test('should skip checks', async t => {
@@ -0,0 +1 @@
1
+ *
@@ -0,0 +1 @@
1
+ *
package/CHANGELOG.md DELETED
@@ -1,102 +0,0 @@
1
- # Changelog
2
-
3
- This document lists breaking changes for each major release.
4
-
5
- See the GitHub Releases page for detailed changelogs:
6
- [https://github.com/release-it/release-it/releases](https://github.com/release-it/release-it/releases)
7
-
8
- ## v14
9
-
10
- - Removed `global` property from plugins. Use `this.config[key]` instead.
11
- - Removed deprecated `npm.access` option. Set this in `package.json` instead.
12
-
13
- ## v13
14
-
15
- - Dropped support for Node v8
16
- - Dropped support for GitLab v11.6 and lower.
17
- - Deprecated `scripts` are removed (in favor of [hooks](https://github.com/release-it/release-it#hooks)).
18
- - Removed deprecated `--non-interactive` (`-n`) argument. Use `--ci` instead.
19
- - Removed old `%s` and `[REV_RANGE]` syntax in command substitutions. Use `${version}` and `${latestTag}` instead.
20
-
21
- ## v12
22
-
23
- - The `--follow-tags` argument for `git push` has been moved to the default configuration. This is only a breaking
24
- change if `git.pushArgs` was not empty (it was empty by default).
25
-
26
- ## v11
27
-
28
- - The custom `conventional-changelog` increment (e.g. `"increment": "conventional:angular"`) with additional script
29
- configuration is replaced with a plugin. Please see
30
- [conventional changelog](https://github.com/release-it/release-it/blob/master/docs/changelog.md#conventional-changelog)
31
- how to use this plugin.
32
- - The `pkgFiles` option has been removed. If there's a need to bump other files than what `npm version` bumps, it should
33
- be (part of) a plugin.
34
- - By default, the latest version was derived from the latest Git tag. From v11, if the repo has a `package.json` then
35
- that `version` is used instead. The `use` option has been removed. Also see
36
- [latest version](https://github.com/release-it/release-it#latest-version).
37
- - `scripts.changelog` has been moved to `git.changelog`
38
-
39
- ## v10
40
-
41
- - Dropped support for Node v6
42
- - Deprecated options from v9 are removed, the `dist.repo` config in particular (also see
43
- [distribution repository](https://github.com/release-it/release-it/blob/master/docs/recipes/distribution-repo.md) for
44
- alternatives).
45
- - Drop the `--debug` flag. `DEBUG=release-it:* ...` still works.
46
-
47
- ## v9
48
-
49
- There should be no breaking changes, but there have been major internal refactorings and an improved UI. A bunch of new
50
- features and bug fixes have been implemented. Last but not least, the configuration structure is changed significantly.
51
- For this (backwards compatible) change, deprecation warnings are shown, and configurations must be migrated with the
52
- next major release (v10). See [deprecated.json](./config/deprecated.json) for the changes, mainly:
53
-
54
- - All "command hooks" have been moved to `scripts.*`, and some have been renamed.
55
- - All `src.*` options have been moved to `git.*` (and `scripts.*`).
56
- - The `dist.repo` configuration and functionality has been removed.
57
-
58
- ## v8
59
-
60
- - Drop the `--force` flag. It's only use was to move a Git tag.
61
-
62
- ## v7
63
-
64
- - No longer adds untracked files to release commit. (#230)
65
-
66
- ## v6
67
-
68
- - Default value for `requireCleanWorkingDir` is now `true` (previously: `false`). (#173)
69
- - Skip prompt (interactive) if corresponding task (non-interactive) is disabled. E.g. `npm.publish: false` will also not
70
- show "publish" prompt.
71
-
72
- ## v5
73
-
74
- - Drop support for Node v4.
75
-
76
- [Release notes for v5](https://github.com/release-it/release-it/releases/tag/5.0.0-beta.0)
77
-
78
- ## v4
79
-
80
- - Use `shell.exec` for build commands by default (previously this required a `!` prefix).
81
-
82
- [Release notes for v4](https://github.com/release-it/release-it/releases/tag/4.0.0-rc.0)
83
-
84
- ## v3
85
-
86
- - Configuration filename must be `.release-it.json` (previously `.release.json`).
87
- - Refactored configuration structure in this file (and the CLI arguments with it).
88
-
89
- [Release notes for v3](https://github.com/release-it/release-it/releases/tag/3.0.0)
90
-
91
- ## v2
92
-
93
- - Build command is executed before git commit/push.
94
- - Configuration options are better organized. Most of them are backwards compatible with a deprecation notice.
95
-
96
- [Release notes for v2](https://github.com/release-it/release-it/releases/tag/2.0.0)
97
-
98
- ## v1
99
-
100
- Initial major release.
101
-
102
- [Release notes for v1](https://github.com/release-it/release-it/releases/tag/1.0.0)