release-it 15.4.1 → 15.4.3

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.
@@ -286,7 +286,7 @@ class GitHub extends Release {
286
286
 
287
287
  this.log.exec('octokit repos.uploadReleaseAssets', patterns, { isDryRun });
288
288
 
289
- if (!assets || !isReleased || isDryRun) {
289
+ if (!assets || !isReleased) {
290
290
  return true;
291
291
  }
292
292
 
@@ -294,6 +294,9 @@ class GitHub extends Release {
294
294
  if (!files.length) {
295
295
  this.log.warn(`octokit repos.uploadReleaseAssets: did not find "${assets}" relative to ${process.cwd()}`);
296
296
  }
297
+
298
+ if (isDryRun) return Promise.resolve();
299
+
297
300
  return Promise.all(files.map(filePath => this.uploadAsset(filePath)));
298
301
  });
299
302
  }
@@ -257,7 +257,7 @@ class GitLab extends Release {
257
257
 
258
258
  this.log.exec('gitlab releases#uploadAssets', patterns, { isDryRun });
259
259
 
260
- if (!assets || isDryRun) {
260
+ if (!assets) {
261
261
  return noop;
262
262
  }
263
263
 
@@ -265,6 +265,9 @@ class GitLab extends Release {
265
265
  if (!files.length) {
266
266
  this.log.warn(`gitlab releases#uploadAssets: could not find "${assets}" relative to ${process.cwd()}`);
267
267
  }
268
+
269
+ if (isDryRun) return Promise.resolve();
270
+
268
271
  return Promise.all(files.map(filePath => this.uploadAsset(filePath)));
269
272
  });
270
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "15.4.1",
3
+ "version": "15.4.3",
4
4
  "description": "Generic CLI tool to automate versioning and package publishing related tasks.",
5
5
  "keywords": [
6
6
  "build",
@@ -66,10 +66,10 @@
66
66
  "cosmiconfig": "7.0.1",
67
67
  "execa": "6.1.0",
68
68
  "form-data": "4.0.0",
69
- "git-url-parse": "13.0.0",
69
+ "git-url-parse": "13.1.0",
70
70
  "globby": "13.1.2",
71
- "got": "12.3.1",
72
- "inquirer": "9.1.0",
71
+ "got": "12.5.1",
72
+ "inquirer": "9.1.2",
73
73
  "is-ci": "3.0.1",
74
74
  "lodash": "4.17.21",
75
75
  "mime-types": "2.1.35",
@@ -90,7 +90,7 @@
90
90
  "devDependencies": {
91
91
  "@octokit/request-error": "3.0.1",
92
92
  "ava": "4.3.3",
93
- "eslint": "8.23.0",
93
+ "eslint": "8.24.0",
94
94
  "eslint-config-prettier": "8.5.0",
95
95
  "eslint-plugin-ava": "13.2.0",
96
96
  "eslint-plugin-import": "2.26.0",