@releasekit/release 0.2.0 → 0.3.0-next.1

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.
@@ -15,16 +15,20 @@ async function runRelease(options) {
15
15
  info(` ${update.packageName} \u2192 ${update.newVersion}`);
16
16
  }
17
17
  let notesGenerated = false;
18
+ let packageNotes;
19
+ let notesFiles = [];
18
20
  if (!options.skipNotes) {
19
21
  info("Generating release notes...");
20
- await runNotesStep(versionOutput, options);
22
+ const notesResult = await runNotesStep(versionOutput, options);
23
+ packageNotes = notesResult.packageNotes;
24
+ notesFiles = notesResult.files;
21
25
  notesGenerated = true;
22
26
  success("Release notes generated");
23
27
  }
24
28
  let publishOutput;
25
29
  if (!options.skipPublish) {
26
30
  info("Publishing...");
27
- publishOutput = await runPublishStep(versionOutput, options);
31
+ publishOutput = await runPublishStep(versionOutput, options, packageNotes, notesFiles);
28
32
  success("Publish complete");
29
33
  }
30
34
  return { versionOutput, notesGenerated, publishOutput };
@@ -69,9 +73,10 @@ async function runNotesStep(versionOutput, options) {
69
73
  config.output = getDefaultConfig().output;
70
74
  }
71
75
  const input = parsePackageVersioner(JSON.stringify(versionOutput));
72
- await runPipeline(input, config, options.dryRun);
76
+ const result = await runPipeline(input, config, options.dryRun);
77
+ return { packageNotes: result.packageNotes, files: result.files };
73
78
  }
74
- async function runPublishStep(versionOutput, options) {
79
+ async function runPublishStep(versionOutput, options, releaseNotes, additionalFiles) {
75
80
  const { runPipeline, loadConfig } = await import("@releasekit/publish");
76
81
  const config = loadConfig({ configPath: options.config });
77
82
  const publishOptions = {
@@ -79,14 +84,13 @@ async function runPublishStep(versionOutput, options) {
79
84
  registry: "all",
80
85
  npmAuth: "auto",
81
86
  skipGit: options.skipGit,
82
- // The version step already created the commit and tags —
83
- // skip the publish step's git-commit stage to avoid double-committing.
84
- skipGitCommit: true,
85
87
  skipPublish: false,
86
88
  skipGithubRelease: options.skipGithubRelease,
87
89
  skipVerification: options.skipVerification,
88
90
  json: options.json,
89
- verbose: options.verbose
91
+ verbose: options.verbose,
92
+ releaseNotes,
93
+ additionalFiles
90
94
  };
91
95
  return runPipeline(versionOutput, config, publishOptions);
92
96
  }
package/dist/cli.cjs CHANGED
@@ -44,16 +44,20 @@ async function runRelease(options) {
44
44
  (0, import_core.info)(` ${update.packageName} \u2192 ${update.newVersion}`);
45
45
  }
46
46
  let notesGenerated = false;
47
+ let packageNotes;
48
+ let notesFiles = [];
47
49
  if (!options.skipNotes) {
48
50
  (0, import_core.info)("Generating release notes...");
49
- await runNotesStep(versionOutput, options);
51
+ const notesResult = await runNotesStep(versionOutput, options);
52
+ packageNotes = notesResult.packageNotes;
53
+ notesFiles = notesResult.files;
50
54
  notesGenerated = true;
51
55
  (0, import_core.success)("Release notes generated");
52
56
  }
53
57
  let publishOutput;
54
58
  if (!options.skipPublish) {
55
59
  (0, import_core.info)("Publishing...");
56
- publishOutput = await runPublishStep(versionOutput, options);
60
+ publishOutput = await runPublishStep(versionOutput, options, packageNotes, notesFiles);
57
61
  (0, import_core.success)("Publish complete");
58
62
  }
59
63
  return { versionOutput, notesGenerated, publishOutput };
@@ -98,9 +102,10 @@ async function runNotesStep(versionOutput, options) {
98
102
  config.output = getDefaultConfig().output;
99
103
  }
100
104
  const input = parsePackageVersioner(JSON.stringify(versionOutput));
101
- await runPipeline(input, config, options.dryRun);
105
+ const result = await runPipeline(input, config, options.dryRun);
106
+ return { packageNotes: result.packageNotes, files: result.files };
102
107
  }
103
- async function runPublishStep(versionOutput, options) {
108
+ async function runPublishStep(versionOutput, options, releaseNotes, additionalFiles) {
104
109
  const { runPipeline, loadConfig } = await import("@releasekit/publish");
105
110
  const config = loadConfig({ configPath: options.config });
106
111
  const publishOptions = {
@@ -108,14 +113,13 @@ async function runPublishStep(versionOutput, options) {
108
113
  registry: "all",
109
114
  npmAuth: "auto",
110
115
  skipGit: options.skipGit,
111
- // The version step already created the commit and tags —
112
- // skip the publish step's git-commit stage to avoid double-committing.
113
- skipGitCommit: true,
114
116
  skipPublish: false,
115
117
  skipGithubRelease: options.skipGithubRelease,
116
118
  skipVerification: options.skipVerification,
117
119
  json: options.json,
118
- verbose: options.verbose
120
+ verbose: options.verbose,
121
+ releaseNotes,
122
+ additionalFiles
119
123
  };
120
124
  return runPipeline(versionOutput, config, publishOptions);
121
125
  }
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runRelease
4
- } from "./chunk-M6LK5PP4.js";
4
+ } from "./chunk-ONEIHH2F.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import { EXIT_CODES } from "@releasekit/core";
package/dist/index.cjs CHANGED
@@ -51,16 +51,20 @@ async function runRelease(options) {
51
51
  (0, import_core.info)(` ${update.packageName} \u2192 ${update.newVersion}`);
52
52
  }
53
53
  let notesGenerated = false;
54
+ let packageNotes;
55
+ let notesFiles = [];
54
56
  if (!options.skipNotes) {
55
57
  (0, import_core.info)("Generating release notes...");
56
- await runNotesStep(versionOutput, options);
58
+ const notesResult = await runNotesStep(versionOutput, options);
59
+ packageNotes = notesResult.packageNotes;
60
+ notesFiles = notesResult.files;
57
61
  notesGenerated = true;
58
62
  (0, import_core.success)("Release notes generated");
59
63
  }
60
64
  let publishOutput;
61
65
  if (!options.skipPublish) {
62
66
  (0, import_core.info)("Publishing...");
63
- publishOutput = await runPublishStep(versionOutput, options);
67
+ publishOutput = await runPublishStep(versionOutput, options, packageNotes, notesFiles);
64
68
  (0, import_core.success)("Publish complete");
65
69
  }
66
70
  return { versionOutput, notesGenerated, publishOutput };
@@ -105,9 +109,10 @@ async function runNotesStep(versionOutput, options) {
105
109
  config.output = getDefaultConfig().output;
106
110
  }
107
111
  const input = parsePackageVersioner(JSON.stringify(versionOutput));
108
- await runPipeline(input, config, options.dryRun);
112
+ const result = await runPipeline(input, config, options.dryRun);
113
+ return { packageNotes: result.packageNotes, files: result.files };
109
114
  }
110
- async function runPublishStep(versionOutput, options) {
115
+ async function runPublishStep(versionOutput, options, releaseNotes, additionalFiles) {
111
116
  const { runPipeline, loadConfig } = await import("@releasekit/publish");
112
117
  const config = loadConfig({ configPath: options.config });
113
118
  const publishOptions = {
@@ -115,14 +120,13 @@ async function runPublishStep(versionOutput, options) {
115
120
  registry: "all",
116
121
  npmAuth: "auto",
117
122
  skipGit: options.skipGit,
118
- // The version step already created the commit and tags —
119
- // skip the publish step's git-commit stage to avoid double-committing.
120
- skipGitCommit: true,
121
123
  skipPublish: false,
122
124
  skipGithubRelease: options.skipGithubRelease,
123
125
  skipVerification: options.skipVerification,
124
126
  json: options.json,
125
- verbose: options.verbose
127
+ verbose: options.verbose,
128
+ releaseNotes,
129
+ additionalFiles
126
130
  };
127
131
  return runPipeline(versionOutput, config, publishOptions);
128
132
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runRelease
3
- } from "./chunk-M6LK5PP4.js";
3
+ } from "./chunk-ONEIHH2F.js";
4
4
  export {
5
5
  runRelease
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/release",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-next.1",
4
4
  "description": "Unified release pipeline: version, changelog, and publish in a single command",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -50,10 +50,10 @@
50
50
  "dependencies": {
51
51
  "commander": "^14.0.3",
52
52
  "@releasekit/config": "0.1.0",
53
- "@releasekit/publish": "0.2.0",
54
- "@releasekit/version": "0.2.0",
55
53
  "@releasekit/core": "0.1.0",
56
- "@releasekit/notes": "0.2.0"
54
+ "@releasekit/version": "0.3.0-next.1",
55
+ "@releasekit/publish": "0.3.0-next.1",
56
+ "@releasekit/notes": "0.3.0-next.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "^2.4.6",