@releasekit/release 0.10.0 → 0.10.2

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/dist/cli.js CHANGED
@@ -46954,7 +46954,8 @@ async function runRelease(inputOptions) {
46954
46954
  }
46955
46955
  const releaseConfig = releaseKitConfig.release;
46956
46956
  const ciConfig = loadCIConfig({ cwd: options.projectDir, configPath: options.config });
46957
- if (!options.dryRun || ciConfig?.scopeLabels) {
46957
+ let effectiveTarget = options.target;
46958
+ if (!options.dryRun || ciConfig?.scopeLabels && Object.keys(ciConfig.scopeLabels).length > 0) {
46958
46959
  const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
46959
46960
  if (scopeResult.blocked) {
46960
46961
  info("Release blocked due to conflicting PR labels");
@@ -46965,7 +46966,8 @@ async function runRelease(inputOptions) {
46965
46966
  return null;
46966
46967
  }
46967
46968
  if (scopeResult.target !== options.target) {
46968
- options.target = scopeResult.target;
46969
+ info(`Scope labels override target: ${options.target} \u2192 ${scopeResult.target}`);
46970
+ effectiveTarget = scopeResult.target;
46969
46971
  }
46970
46972
  }
46971
46973
  if (releaseConfig?.ci?.skipPatterns?.length) {
@@ -46993,7 +46995,7 @@ async function runRelease(inputOptions) {
46993
46995
  options.skipGithubRelease = true;
46994
46996
  }
46995
46997
  info("Running version analysis...");
46996
- const versionOutput = await runVersionStep({ ...options, dryRun: true });
46998
+ const versionOutput = await runVersionStep({ ...options, target: effectiveTarget, dryRun: true });
46997
46999
  versionOutput.dryRun = options.dryRun ?? false;
46998
47000
  if (versionOutput.updates.length === 0) {
46999
47001
  info("No releasable changes found");
@@ -47006,7 +47006,8 @@ async function runRelease(inputOptions) {
47006
47006
  }
47007
47007
  const releaseConfig = releaseKitConfig.release;
47008
47008
  const ciConfig = loadCIConfig({ cwd: options.projectDir, configPath: options.config });
47009
- if (!options.dryRun || ciConfig?.scopeLabels) {
47009
+ let effectiveTarget = options.target;
47010
+ if (!options.dryRun || ciConfig?.scopeLabels && Object.keys(ciConfig.scopeLabels).length > 0) {
47010
47011
  const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
47011
47012
  if (scopeResult.blocked) {
47012
47013
  info("Release blocked due to conflicting PR labels");
@@ -47017,7 +47018,8 @@ async function runRelease(inputOptions) {
47017
47018
  return null;
47018
47019
  }
47019
47020
  if (scopeResult.target !== options.target) {
47020
- options.target = scopeResult.target;
47021
+ info(`Scope labels override target: ${options.target} \u2192 ${scopeResult.target}`);
47022
+ effectiveTarget = scopeResult.target;
47021
47023
  }
47022
47024
  }
47023
47025
  if (releaseConfig?.ci?.skipPatterns?.length) {
@@ -47045,7 +47047,7 @@ async function runRelease(inputOptions) {
47045
47047
  options.skipGithubRelease = true;
47046
47048
  }
47047
47049
  info("Running version analysis...");
47048
- const versionOutput = await runVersionStep({ ...options, dryRun: true });
47050
+ const versionOutput = await runVersionStep({ ...options, target: effectiveTarget, dryRun: true });
47049
47051
  versionOutput.dryRun = options.dryRun ?? false;
47050
47052
  if (versionOutput.updates.length === 0) {
47051
47053
  info("No releasable changes found");
package/dist/index.js CHANGED
@@ -46920,7 +46920,8 @@ async function runRelease(inputOptions) {
46920
46920
  }
46921
46921
  const releaseConfig = releaseKitConfig.release;
46922
46922
  const ciConfig = loadCIConfig({ cwd: options.projectDir, configPath: options.config });
46923
- if (!options.dryRun || ciConfig?.scopeLabels) {
46923
+ let effectiveTarget = options.target;
46924
+ if (!options.dryRun || ciConfig?.scopeLabels && Object.keys(ciConfig.scopeLabels).length > 0) {
46924
46925
  const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
46925
46926
  if (scopeResult.blocked) {
46926
46927
  info("Release blocked due to conflicting PR labels");
@@ -46931,7 +46932,8 @@ async function runRelease(inputOptions) {
46931
46932
  return null;
46932
46933
  }
46933
46934
  if (scopeResult.target !== options.target) {
46934
- options.target = scopeResult.target;
46935
+ info(`Scope labels override target: ${options.target} \u2192 ${scopeResult.target}`);
46936
+ effectiveTarget = scopeResult.target;
46935
46937
  }
46936
46938
  }
46937
46939
  if (releaseConfig?.ci?.skipPatterns?.length) {
@@ -46959,7 +46961,7 @@ async function runRelease(inputOptions) {
46959
46961
  options.skipGithubRelease = true;
46960
46962
  }
46961
46963
  info("Running version analysis...");
46962
- const versionOutput = await runVersionStep({ ...options, dryRun: true });
46964
+ const versionOutput = await runVersionStep({ ...options, target: effectiveTarget, dryRun: true });
46963
46965
  versionOutput.dryRun = options.dryRun ?? false;
46964
46966
  if (versionOutput.updates.length === 0) {
46965
46967
  info("No releasable changes found");
package/docs/ci-setup.md CHANGED
@@ -63,9 +63,9 @@ Only release when a PR is merged with a release label. Conventional commits dete
63
63
  | `bump:patch` | Bump patch version |
64
64
  | `bump:minor` | Bump minor version |
65
65
  | `bump:major` | Bump major version |
66
- | `release:stable` | Promote a prerelease to stable (e.g. `1.0.0-next.6` → `1.0.0`). Can be used alone — no bump label needed. Has no effect on stable versions. |
67
- | `release:prerelease` | Channel modifier must be combined with a `bump:*` label. Alone, no release is triggered. |
68
- | `release:skip` | Suppress release on this PR (commit trigger mode only) |
66
+ | `release:stable` | Graduate a prerelease to stable |
67
+ | `release:prerelease` | Create a prerelease (requires bump:* label) |
68
+ | `release:skip` | Suppress release on this PR |
69
69
 
70
70
  #### Label combinations
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/release",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Unified release pipeline: version, changelog, and publish in a single command",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -50,9 +50,9 @@
50
50
  "conventional-changelog-conventionalcommits": "^9.3.0",
51
51
  "smol-toml": "^1.6.1",
52
52
  "zod": "^4.3.6",
53
- "@releasekit/notes": "0.10.0",
54
- "@releasekit/publish": "0.10.0",
55
- "@releasekit/version": "0.10.0"
53
+ "@releasekit/notes": "0.10.2",
54
+ "@releasekit/version": "0.10.2",
55
+ "@releasekit/publish": "0.10.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@biomejs/biome": "^2.4.10",