@ucdjs/release-scripts 0.1.0-beta.55 → 0.1.0-beta.56

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.
Files changed (2) hide show
  1. package/dist/index.mjs +11 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -467,8 +467,11 @@ const DEFAULT_CHANGELOG_TEMPLATE = dedent`
467
467
  ## <%= it.version %> (<%= it.date %>)
468
468
  <% } %>
469
469
 
470
+ <% let hasCommits = false; %>
471
+
470
472
  <% it.groups.forEach((group) => { %>
471
473
  <% if (group.commits.length > 0) { %>
474
+ <% hasCommits = true; %>
472
475
 
473
476
  ### <%= group.title %>
474
477
  <% group.commits.forEach((commit) => { %>
@@ -478,6 +481,13 @@ const DEFAULT_CHANGELOG_TEMPLATE = dedent`
478
481
 
479
482
  <% } %>
480
483
  <% }); %>
484
+
485
+ <% if (!hasCommits) { %>
486
+
487
+ ### Notes
488
+
489
+ * No significant commits in this release.
490
+ <% } %>
481
491
  `;
482
492
  const DEFAULT_TYPES = {
483
493
  feat: { title: "🚀 Features" },
@@ -2214,10 +2224,7 @@ async function prepareWorkflow(options) {
2214
2224
  }
2215
2225
  }
2216
2226
  const allCommits = [...pkgCommits, ...globalCommits];
2217
- if (allCommits.length === 0) {
2218
- logger.verbose(`No commits for ${update.package.name}, skipping changelog`);
2219
- return;
2220
- }
2227
+ if (allCommits.length === 0) logger.verbose(`No commits for ${update.package.name}, writing changelog entry with no-significant-commits note`);
2221
2228
  logger.verbose(`Updating changelog for ${farver.cyan(update.package.name)}`);
2222
2229
  await updateChangelog({
2223
2230
  normalizedOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucdjs/release-scripts",
3
- "version": "0.1.0-beta.55",
3
+ "version": "0.1.0-beta.56",
4
4
  "description": "@ucdjs release scripts",
5
5
  "type": "module",
6
6
  "license": "MIT",