@releasekit/release 0.10.1 → 0.10.3

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,19 +46954,19 @@ 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) {
46958
- const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
46959
- if (scopeResult.blocked) {
46960
- info("Release blocked due to conflicting PR labels");
46961
- return null;
46962
- }
46963
- if (scopeResult.skipped) {
46964
- info("Release skipped due to release:skip label");
46965
- return null;
46966
- }
46967
- if (scopeResult.target !== options.target) {
46968
- options.target = scopeResult.target;
46969
- }
46957
+ let effectiveTarget = options.target;
46958
+ const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
46959
+ if (scopeResult.blocked) {
46960
+ info("Release blocked due to conflicting PR labels");
46961
+ return null;
46962
+ }
46963
+ if (scopeResult.skipped) {
46964
+ info("Release skipped due to release:skip label");
46965
+ return null;
46966
+ }
46967
+ if (!options.dryRun && scopeResult.target !== options.target) {
46968
+ info(`Scope labels override target: ${options.target} \u2192 ${scopeResult.target}`);
46969
+ effectiveTarget = scopeResult.target;
46970
46970
  }
46971
46971
  if (releaseConfig?.ci?.skipPatterns?.length) {
46972
46972
  const headCommit = getHeadCommitMessage(options.projectDir);
@@ -46993,7 +46993,7 @@ async function runRelease(inputOptions) {
46993
46993
  options.skipGithubRelease = true;
46994
46994
  }
46995
46995
  info("Running version analysis...");
46996
- const versionOutput = await runVersionStep({ ...options, dryRun: true });
46996
+ const versionOutput = await runVersionStep({ ...options, target: effectiveTarget, dryRun: true });
46997
46997
  versionOutput.dryRun = options.dryRun ?? false;
46998
46998
  if (versionOutput.updates.length === 0) {
46999
46999
  info("No releasable changes found");
@@ -47006,19 +47006,19 @@ 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) {
47010
- const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
47011
- if (scopeResult.blocked) {
47012
- info("Release blocked due to conflicting PR labels");
47013
- return null;
47014
- }
47015
- if (scopeResult.skipped) {
47016
- info("Release skipped due to release:skip label");
47017
- return null;
47018
- }
47019
- if (scopeResult.target !== options.target) {
47020
- options.target = scopeResult.target;
47021
- }
47009
+ let effectiveTarget = options.target;
47010
+ const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
47011
+ if (scopeResult.blocked) {
47012
+ info("Release blocked due to conflicting PR labels");
47013
+ return null;
47014
+ }
47015
+ if (scopeResult.skipped) {
47016
+ info("Release skipped due to release:skip label");
47017
+ return null;
47018
+ }
47019
+ if (!options.dryRun && scopeResult.target !== options.target) {
47020
+ info(`Scope labels override target: ${options.target} \u2192 ${scopeResult.target}`);
47021
+ effectiveTarget = scopeResult.target;
47022
47022
  }
47023
47023
  if (releaseConfig?.ci?.skipPatterns?.length) {
47024
47024
  const headCommit = getHeadCommitMessage(options.projectDir);
@@ -47045,7 +47045,7 @@ async function runRelease(inputOptions) {
47045
47045
  options.skipGithubRelease = true;
47046
47046
  }
47047
47047
  info("Running version analysis...");
47048
- const versionOutput = await runVersionStep({ ...options, dryRun: true });
47048
+ const versionOutput = await runVersionStep({ ...options, target: effectiveTarget, dryRun: true });
47049
47049
  versionOutput.dryRun = options.dryRun ?? false;
47050
47050
  if (versionOutput.updates.length === 0) {
47051
47051
  info("No releasable changes found");
package/dist/index.js CHANGED
@@ -46920,19 +46920,19 @@ 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) {
46924
- const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
46925
- if (scopeResult.blocked) {
46926
- info("Release blocked due to conflicting PR labels");
46927
- return null;
46928
- }
46929
- if (scopeResult.skipped) {
46930
- info("Release skipped due to release:skip label");
46931
- return null;
46932
- }
46933
- if (scopeResult.target !== options.target) {
46934
- options.target = scopeResult.target;
46935
- }
46923
+ let effectiveTarget = options.target;
46924
+ const scopeResult = await applyScopeLabelsFromPR(ciConfig, options);
46925
+ if (scopeResult.blocked) {
46926
+ info("Release blocked due to conflicting PR labels");
46927
+ return null;
46928
+ }
46929
+ if (scopeResult.skipped) {
46930
+ info("Release skipped due to release:skip label");
46931
+ return null;
46932
+ }
46933
+ if (!options.dryRun && scopeResult.target !== options.target) {
46934
+ info(`Scope labels override target: ${options.target} \u2192 ${scopeResult.target}`);
46935
+ effectiveTarget = scopeResult.target;
46936
46936
  }
46937
46937
  if (releaseConfig?.ci?.skipPatterns?.length) {
46938
46938
  const headCommit = getHeadCommitMessage(options.projectDir);
@@ -46959,7 +46959,7 @@ async function runRelease(inputOptions) {
46959
46959
  options.skipGithubRelease = true;
46960
46960
  }
46961
46961
  info("Running version analysis...");
46962
- const versionOutput = await runVersionStep({ ...options, dryRun: true });
46962
+ const versionOutput = await runVersionStep({ ...options, target: effectiveTarget, dryRun: true });
46963
46963
  versionOutput.dryRun = options.dryRun ?? false;
46964
46964
  if (versionOutput.updates.length === 0) {
46965
46965
  info("No releasable changes found");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/release",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
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/publish": "0.10.1",
54
- "@releasekit/version": "0.10.1",
55
- "@releasekit/notes": "0.10.1"
53
+ "@releasekit/notes": "0.10.3",
54
+ "@releasekit/publish": "0.10.3",
55
+ "@releasekit/version": "0.10.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@biomejs/biome": "^2.4.10",
@@ -62,8 +62,8 @@
62
62
  "tsup": "^8.5.1",
63
63
  "typescript": "^5.9.3",
64
64
  "vitest": "^4.1.2",
65
- "@releasekit/core": "0.0.0",
66
- "@releasekit/config": "0.0.0"
65
+ "@releasekit/config": "0.0.0",
66
+ "@releasekit/core": "0.0.0"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=20"