@aklinker1/zero-changelog 0.1.6 → 0.1.7

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/release.mjs +11 -10
  2. package/package.json +1 -1
package/dist/release.mjs CHANGED
@@ -82,16 +82,6 @@ async function release(options) {
82
82
  });
83
83
  await writeFile("CHANGELOG.md", serializeChangelog(changelog), "utf8");
84
84
  console.log("CHANGELOG.md updated");
85
- if (dryRun && dryRunPublishCommands?.length) for (const cmd of dryRunPublishCommands) await run({
86
- dryRun: false,
87
- cwd: path,
88
- cmd
89
- });
90
- else if (publishCommands?.length) for (const cmd of publishCommands) await run({
91
- dryRun,
92
- cwd: path,
93
- cmd
94
- });
95
85
  const commit = template(commitTemplate, {
96
86
  version,
97
87
  path,
@@ -112,6 +102,17 @@ async function release(options) {
112
102
  cwd: path,
113
103
  cmd: `git tag ${tag}`
114
104
  });
105
+ console.log("Changes committed");
106
+ if (dryRun && dryRunPublishCommands?.length) for (const cmd of dryRunPublishCommands) await run({
107
+ dryRun: false,
108
+ cwd: path,
109
+ cmd
110
+ });
111
+ else if (publishCommands?.length) for (const cmd of publishCommands) await run({
112
+ dryRun,
113
+ cwd: path,
114
+ cmd
115
+ });
115
116
  await run({
116
117
  dryRun,
117
118
  cwd: path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aklinker1/zero-changelog",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Zero-dependency, conventional commit release and changelog generator with monorepo support",
5
5
  "keywords": [
6
6
  "changelog",