@releasekit/release 0.2.0-next.9 → 0.3.0-next.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sam Maister
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -75,7 +75,8 @@ If no releasable changes are found after step 1, the command exits with code 0 a
75
75
  run: releasekit release
76
76
  env:
77
77
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78
+ # For OIDC trusted publishing: no npm token needed (recommended).
79
+ # For token-based publishing: set NPM_TOKEN (or NODE_AUTH_TOKEN).
79
80
  ```
80
81
 
81
82
  ### Automated releases on push to main
@@ -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 = {
@@ -83,7 +88,9 @@ async function runPublishStep(versionOutput, options) {
83
88
  skipGithubRelease: options.skipGithubRelease,
84
89
  skipVerification: options.skipVerification,
85
90
  json: options.json,
86
- verbose: options.verbose
91
+ verbose: options.verbose,
92
+ releaseNotes,
93
+ additionalFiles
87
94
  };
88
95
  return runPipeline(versionOutput, config, publishOptions);
89
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 = {
@@ -112,7 +117,9 @@ async function runPublishStep(versionOutput, options) {
112
117
  skipGithubRelease: options.skipGithubRelease,
113
118
  skipVerification: options.skipVerification,
114
119
  json: options.json,
115
- verbose: options.verbose
120
+ verbose: options.verbose,
121
+ releaseNotes,
122
+ additionalFiles
116
123
  };
117
124
  return runPipeline(versionOutput, config, publishOptions);
118
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-44AGNIZ7.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 = {
@@ -119,7 +124,9 @@ async function runPublishStep(versionOutput, options) {
119
124
  skipGithubRelease: options.skipGithubRelease,
120
125
  skipVerification: options.skipVerification,
121
126
  json: options.json,
122
- verbose: options.verbose
127
+ verbose: options.verbose,
128
+ releaseNotes,
129
+ additionalFiles
123
130
  };
124
131
  return runPipeline(versionOutput, config, publishOptions);
125
132
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runRelease
3
- } from "./chunk-44AGNIZ7.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-next.9",
3
+ "version": "0.3.0-next.0",
4
4
  "description": "Unified release pipeline: version, changelog, and publish in a single command",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -21,17 +21,14 @@
21
21
  "bin": {
22
22
  "releasekit": "dist/cli.js"
23
23
  },
24
- "scripts": {
25
- "build": "tsup src/index.ts src/cli.ts --format esm,cjs --dts",
26
- "dev": "tsup src/index.ts src/cli.ts --format esm,cjs --watch --dts",
27
- "clean": "rm -rf dist coverage .turbo",
28
- "test": "vitest run",
29
- "test:unit": "vitest run --coverage",
30
- "test:coverage": "vitest run --coverage",
31
- "lint": "biome check .",
32
- "typecheck": "tsc --noEmit"
33
- },
34
- "keywords": ["release", "version", "changelog", "publish", "cli", "ci"],
24
+ "keywords": [
25
+ "release",
26
+ "version",
27
+ "changelog",
28
+ "publish",
29
+ "cli",
30
+ "ci"
31
+ ],
35
32
  "author": {
36
33
  "name": "Sam Maister",
37
34
  "email": "goosewobbler@protonmail.com"
@@ -42,28 +39,42 @@
42
39
  "directory": "packages/release"
43
40
  },
44
41
  "license": "MIT",
45
- "files": ["dist", "README.md", "LICENSE"],
42
+ "files": [
43
+ "dist",
44
+ "README.md",
45
+ "LICENSE"
46
+ ],
46
47
  "publishConfig": {
47
48
  "access": "public"
48
49
  },
49
50
  "dependencies": {
50
- "@releasekit/config": "workspace:*",
51
- "@releasekit/core": "workspace:*",
52
- "@releasekit/notes": "workspace:*",
53
- "@releasekit/publish": "workspace:*",
54
- "@releasekit/version": "workspace:*",
55
- "commander": "catalog:"
51
+ "commander": "^14.0.3",
52
+ "@releasekit/config": "0.1.0",
53
+ "@releasekit/publish": "0.3.0-next.0",
54
+ "@releasekit/notes": "0.3.0-next.0",
55
+ "@releasekit/version": "0.3.0-next.0",
56
+ "@releasekit/core": "0.1.0"
56
57
  },
57
58
  "devDependencies": {
58
- "@biomejs/biome": "catalog:",
59
- "@types/node": "catalog:",
60
- "@types/semver": "catalog:",
61
- "@vitest/coverage-v8": "catalog:",
62
- "tsup": "catalog:",
63
- "typescript": "catalog:",
64
- "vitest": "catalog:"
59
+ "@biomejs/biome": "^2.4.6",
60
+ "@types/node": "^22.19.15",
61
+ "@types/semver": "^7.7.1",
62
+ "@vitest/coverage-v8": "^4.1.0",
63
+ "tsup": "^8.5.1",
64
+ "typescript": "^5.9.3",
65
+ "vitest": "^4.1.0"
65
66
  },
66
67
  "engines": {
67
68
  "node": ">=20"
69
+ },
70
+ "scripts": {
71
+ "build": "tsup src/index.ts src/cli.ts --format esm,cjs --dts",
72
+ "dev": "tsup src/index.ts src/cli.ts --format esm,cjs --watch --dts",
73
+ "clean": "rm -rf dist coverage .turbo",
74
+ "test": "vitest run",
75
+ "test:unit": "vitest run --coverage",
76
+ "test:coverage": "vitest run --coverage",
77
+ "lint": "biome check .",
78
+ "typecheck": "tsc --noEmit"
68
79
  }
69
- }
80
+ }