@storm-software/git-tools 2.131.22 → 2.131.24
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/bin/{chunk-7FLNOTUH.cjs → chunk-3LVCR6LS.cjs} +4 -4
- package/bin/{chunk-7FLNOTUH.cjs.map → chunk-3LVCR6LS.cjs.map} +1 -1
- package/bin/{chunk-NFY3U5Y5.js → chunk-3PI2VV32.js} +3 -3
- package/bin/{chunk-NFY3U5Y5.js.map → chunk-3PI2VV32.js.map} +1 -1
- package/bin/{chunk-RNHFC7RJ.js → chunk-3XAQUPZK.js} +11 -5
- package/bin/chunk-3XAQUPZK.js.map +1 -0
- package/bin/{chunk-KQFEBKJ6.cjs → chunk-4CS5RPMP.cjs} +5 -5
- package/bin/{chunk-KQFEBKJ6.cjs.map → chunk-4CS5RPMP.cjs.map} +1 -1
- package/bin/{chunk-K3M4EFXG.js → chunk-4GZZR7XL.js} +3 -3
- package/bin/{chunk-K3M4EFXG.js.map → chunk-4GZZR7XL.js.map} +1 -1
- package/bin/{chunk-S2KYF4B5.js → chunk-AX3PXQKJ.js} +3 -3
- package/bin/{chunk-S2KYF4B5.js.map → chunk-AX3PXQKJ.js.map} +1 -1
- package/bin/{chunk-2K6K4B6C.js → chunk-C6K3ZRT6.js} +3 -3
- package/bin/{chunk-2K6K4B6C.js.map → chunk-C6K3ZRT6.js.map} +1 -1
- package/bin/{chunk-WVG2JDAL.js → chunk-DOELUOOS.js} +3 -3
- package/bin/{chunk-WVG2JDAL.js.map → chunk-DOELUOOS.js.map} +1 -1
- package/bin/{chunk-JZL474YC.js → chunk-GPHBDU6A.js} +3 -3
- package/bin/{chunk-JZL474YC.js.map → chunk-GPHBDU6A.js.map} +1 -1
- package/bin/{chunk-PXSKDL54.cjs → chunk-M4UDDFX2.cjs} +4 -4
- package/bin/{chunk-PXSKDL54.cjs.map → chunk-M4UDDFX2.cjs.map} +1 -1
- package/bin/{chunk-TCH5N4G6.cjs → chunk-MQOEMLKV.cjs} +4 -4
- package/bin/{chunk-TCH5N4G6.cjs.map → chunk-MQOEMLKV.cjs.map} +1 -1
- package/bin/{chunk-GVYZ5VMU.cjs → chunk-NSP7UDOF.cjs} +4 -4
- package/bin/{chunk-GVYZ5VMU.cjs.map → chunk-NSP7UDOF.cjs.map} +1 -1
- package/bin/{chunk-2DHSN2C3.cjs → chunk-QITSXT5W.cjs} +6 -6
- package/bin/{chunk-2DHSN2C3.cjs.map → chunk-QITSXT5W.cjs.map} +1 -1
- package/bin/{chunk-OOFHIS6Q.cjs → chunk-QOOEK76B.cjs} +11 -5
- package/bin/chunk-QOOEK76B.cjs.map +1 -0
- package/bin/{chunk-CZGE4575.cjs → chunk-WZZIVUHI.cjs} +4 -4
- package/bin/{chunk-CZGE4575.cjs.map → chunk-WZZIVUHI.cjs.map} +1 -1
- package/bin/{chunk-NPCKWTZG.js → chunk-Y7OK7243.js} +3 -3
- package/bin/{chunk-NPCKWTZG.js.map → chunk-Y7OK7243.js.map} +1 -1
- package/bin/git.cjs +272 -172
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +134 -34
- package/bin/git.js.map +1 -1
- package/bin/post-checkout.cjs +7 -7
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +7 -7
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +7 -7
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +7 -7
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +7 -7
- package/bin/pre-install.js +2 -2
- package/bin/pre-push.cjs +7 -7
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +2 -2
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-OWXRRH4A.cjs → chunk-3YY3EGSK.cjs} +2 -2
- package/dist/{chunk-Q22WRFSZ.cjs → chunk-4J6EYVX4.cjs} +19 -27
- package/dist/{chunk-HLX2O3W5.js → chunk-5AVCKBNV.js} +9 -17
- package/dist/{chunk-4SXK4XZ7.js → chunk-A3IJ22YJ.js} +1 -1
- package/dist/{chunk-PUNY63CE.cjs → chunk-AOPYQZJZ.cjs} +2 -2
- package/dist/{chunk-MWHYSQOS.cjs → chunk-C4226MIL.cjs} +3 -3
- package/dist/{chunk-3NDL3NYQ.cjs → chunk-F67AF77W.cjs} +9 -3
- package/dist/{chunk-JOWTWLTO.js → chunk-GN5PPUYJ.js} +1 -1
- package/dist/{chunk-PV25OROZ.js → chunk-ISJNCGTW.js} +9 -3
- package/dist/{chunk-TUICLGR7.js → chunk-JTMGWUUD.js} +1 -1
- package/dist/{chunk-VVDS3FJO.js → chunk-MTEWMWXP.js} +1 -1
- package/dist/{chunk-3ISKKN7V.cjs → chunk-MWFYZ6C5.cjs} +2 -2
- package/dist/{chunk-K6YQY3XT.cjs → chunk-QHOVDHJS.cjs} +2 -2
- package/dist/{chunk-GPIIJKQ7.js → chunk-RA7GZDUN.js} +1 -1
- package/dist/{chunk-GQZU3KQU.cjs → chunk-S57KI3QJ.cjs} +2 -2
- package/dist/{chunk-ICTL4AOJ.js → chunk-VXHEKX5N.js} +1 -1
- package/dist/{chunk-BBFGZEK2.cjs → chunk-XMOG277R.cjs} +4 -4
- package/dist/{chunk-22KHZEQ7.js → chunk-YEPJCR66.js} +1 -1
- package/dist/index.cjs +33 -33
- package/dist/index.js +9 -9
- package/dist/release/config.cjs +19 -19
- package/dist/release/config.d.cts +2 -0
- package/dist/release/config.d.ts +2 -0
- package/dist/release/config.js +2 -2
- package/package.json +7 -7
- package/bin/chunk-OOFHIS6Q.cjs.map +0 -1
- package/bin/chunk-RNHFC7RJ.js.map +0 -1
package/bin/git.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { postCheckoutHook } from './chunk-
|
|
3
|
-
import { postCommitHook } from './chunk-
|
|
4
|
-
import { postMergeHook } from './chunk-
|
|
5
|
-
import { preCommitHook } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { prePushHook } from './chunk-
|
|
2
|
+
import { postCheckoutHook } from './chunk-DOELUOOS.js';
|
|
3
|
+
import { postCommitHook } from './chunk-3PI2VV32.js';
|
|
4
|
+
import { postMergeHook } from './chunk-AX3PXQKJ.js';
|
|
5
|
+
import { preCommitHook } from './chunk-4GZZR7XL.js';
|
|
6
|
+
import './chunk-C6K3ZRT6.js';
|
|
7
|
+
import { prePushHook } from './chunk-GPHBDU6A.js';
|
|
8
8
|
import './chunk-HBLWPOJV.js';
|
|
9
|
-
import { prepareHook } from './chunk-
|
|
9
|
+
import { prepareHook } from './chunk-Y7OK7243.js';
|
|
10
10
|
import { run, runAsync } from './chunk-RPK5AKGK.js';
|
|
11
|
-
import { defu, getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, brandIcon, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug,
|
|
11
|
+
import { defu, getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, brandIcon, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, writeWarning, writeTrace, isVerbose, formatLogMessage, __require, STORM_DEFAULT_RELEASE_BANNER } from './chunk-3XAQUPZK.js';
|
|
12
12
|
import TOML from '@ltd/j-toml';
|
|
13
13
|
import { Command } from 'commander';
|
|
14
14
|
import '@inquirer/checkbox';
|
|
@@ -50,10 +50,11 @@ import { parse } from 'yaml';
|
|
|
50
50
|
import chalk from 'chalk';
|
|
51
51
|
import { printAndFlushChanges as printAndFlushChanges$1 } from 'nx/src/command-line/release/utils/print-changes';
|
|
52
52
|
import { createGitTagValues, handleDuplicateGitTags, createCommitMessageValues, isPrerelease, shouldPreferDockerVersionForReleaseGroup, ReleaseVersion, noDiffInChangelogMessage, shouldSkipVersionActions } from 'nx/src/command-line/release/utils/shared';
|
|
53
|
-
import { interpolate } from 'nx/src/tasks-runner/utils';
|
|
53
|
+
import { interpolate as interpolate$1 } from 'nx/src/tasks-runner/utils';
|
|
54
54
|
import { execCommand } from 'nx/src/command-line/release/utils/exec-command.js';
|
|
55
|
-
import { getCommitHash,
|
|
56
|
-
import
|
|
55
|
+
import { getCommitHash, getFirstGitCommit, gitPush, gitAdd, extractTagAndVersion, getGitDiff, parseCommits, sanitizeProjectNameForGitTag } from 'nx/src/command-line/release/utils/git';
|
|
56
|
+
import { interpolate } from 'nx/src/tasks-runner/utils.js';
|
|
57
|
+
import semver, { prerelease, coerce, gte, major } from 'semver';
|
|
57
58
|
import { ReleaseClient } from 'nx/release';
|
|
58
59
|
import { readRawVersionPlans, setResolvedVersionPlansOnGroups } from 'nx/src/command-line/release/config/version-plans';
|
|
59
60
|
import { printAndFlushChanges } from 'nx/src/command-line/release/utils/print-changes.js';
|
|
@@ -73,7 +74,7 @@ import { topologicalSort } from 'nx/src/command-line/release/version/topological
|
|
|
73
74
|
import { resolveVersionActionsForProject, NOOP_VERSION_ACTIONS as NOOP_VERSION_ACTIONS$1 } from 'nx/src/command-line/release/version/version-actions';
|
|
74
75
|
import { filterAffected } from 'nx/src/project-graph/affected/affected-project-graph';
|
|
75
76
|
import { calculateFileChanges } from 'nx/src/project-graph/file-utils';
|
|
76
|
-
import
|
|
77
|
+
import gte2 from 'semver/functions/gte';
|
|
77
78
|
import { IMPLICIT_DEFAULT_RELEASE_GROUP as IMPLICIT_DEFAULT_RELEASE_GROUP$1 } from 'nx/src/command-line/release/config/config.js';
|
|
78
79
|
import { deriveSpecifierFromConventionalCommits } from 'nx/src/command-line/release/version/derive-specifier-from-conventional-commits';
|
|
79
80
|
import { deriveSpecifierFromVersionPlan } from 'nx/src/command-line/release/version/deriver-specifier-from-version-plans';
|
|
@@ -2550,7 +2551,7 @@ async function generateChangelogForProjects({
|
|
|
2550
2551
|
for (const project of projects) {
|
|
2551
2552
|
let interpolatedTreePath = config5.file || "";
|
|
2552
2553
|
if (interpolatedTreePath) {
|
|
2553
|
-
interpolatedTreePath = interpolate(interpolatedTreePath, {
|
|
2554
|
+
interpolatedTreePath = interpolate$1(interpolatedTreePath, {
|
|
2554
2555
|
projectName: project.name,
|
|
2555
2556
|
projectRoot: project.data.root,
|
|
2556
2557
|
workspaceRoot: ""
|
|
@@ -2578,7 +2579,7 @@ async function generateChangelogForProjects({
|
|
|
2578
2579
|
changes,
|
|
2579
2580
|
changelogEntryVersion: releaseVersion.rawVersion,
|
|
2580
2581
|
project: project.name,
|
|
2581
|
-
entryWhenNoChanges: typeof config5.entryWhenNoChanges === "string" ? interpolate(config5.entryWhenNoChanges, {
|
|
2582
|
+
entryWhenNoChanges: typeof config5.entryWhenNoChanges === "string" ? interpolate$1(config5.entryWhenNoChanges, {
|
|
2582
2583
|
projectName: project.name,
|
|
2583
2584
|
projectRoot: project.data.root,
|
|
2584
2585
|
workspaceRoot: ""
|
|
@@ -2800,6 +2801,109 @@ async function commitChanges({
|
|
|
2800
2801
|
verbose: isVerbose2
|
|
2801
2802
|
});
|
|
2802
2803
|
}
|
|
2804
|
+
var SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/g;
|
|
2805
|
+
async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, additionalInterpolationData = {}, resolveTags, options) {
|
|
2806
|
+
const { requireSemver, strictPreid, preid, checkAllBranchesWhen } = options;
|
|
2807
|
+
try {
|
|
2808
|
+
const tags = await resolveTags(checkAllBranchesWhen);
|
|
2809
|
+
if (!tags.length) {
|
|
2810
|
+
return null;
|
|
2811
|
+
}
|
|
2812
|
+
const interpolatedTagPattern = interpolate(releaseTagPattern, {
|
|
2813
|
+
version: "%v%",
|
|
2814
|
+
projectName: "%p%",
|
|
2815
|
+
releaseGroupName: "%rg%",
|
|
2816
|
+
...additionalInterpolationData
|
|
2817
|
+
});
|
|
2818
|
+
const tagRegexp = `^${interpolatedTagPattern.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&").replace("%v%", "(.+)").replace("%p%", "(.+)").replace("%rg%", "(.+)")}`;
|
|
2819
|
+
const matchingTags = tags.filter((tag) => {
|
|
2820
|
+
if (requireSemver) {
|
|
2821
|
+
return !!tag.match(tagRegexp) && tag.match(tagRegexp).some((r) => r.match(SEMVER_REGEX));
|
|
2822
|
+
} else {
|
|
2823
|
+
return !!tag.match(tagRegexp);
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
if (!matchingTags.length) {
|
|
2827
|
+
return null;
|
|
2828
|
+
}
|
|
2829
|
+
writeDebug(
|
|
2830
|
+
`Found ${matchingTags.length} matching tags out of ${tags.length} total tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2831
|
+
workspaceConfig
|
|
2832
|
+
);
|
|
2833
|
+
if (!strictPreid) {
|
|
2834
|
+
writeDebug(
|
|
2835
|
+
`Not using strict preid, will use the first matching tag ${matchingTags[0]} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2836
|
+
workspaceConfig
|
|
2837
|
+
);
|
|
2838
|
+
return extractTagAndVersion(matchingTags[0], tagRegexp, options);
|
|
2839
|
+
}
|
|
2840
|
+
const stableReleaseTags = matchingTags.filter((tag) => {
|
|
2841
|
+
const matches = tag.match(tagRegexp);
|
|
2842
|
+
if (!matches) return false;
|
|
2843
|
+
const [, version] = matches;
|
|
2844
|
+
return version && !isPrerelease(version);
|
|
2845
|
+
});
|
|
2846
|
+
writeDebug(
|
|
2847
|
+
`Found ${stableReleaseTags.length} stable tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2848
|
+
workspaceConfig
|
|
2849
|
+
);
|
|
2850
|
+
if (preid && preid.length > 0) {
|
|
2851
|
+
const preidReleaseTags = matchingTags.filter((tag) => {
|
|
2852
|
+
const match = tag.match(tagRegexp);
|
|
2853
|
+
if (!match) return false;
|
|
2854
|
+
const version = match.find((part) => part.match(SEMVER_REGEX));
|
|
2855
|
+
return version && version.includes(`-${preid}.`);
|
|
2856
|
+
});
|
|
2857
|
+
writeDebug(
|
|
2858
|
+
`Found ${preidReleaseTags.length} preid tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2859
|
+
workspaceConfig
|
|
2860
|
+
);
|
|
2861
|
+
if (preidReleaseTags.length > 0 && stableReleaseTags.length > 0) {
|
|
2862
|
+
const preidResult = extractTagAndVersion(
|
|
2863
|
+
preidReleaseTags[0],
|
|
2864
|
+
tagRegexp,
|
|
2865
|
+
options
|
|
2866
|
+
);
|
|
2867
|
+
const stableResult = extractTagAndVersion(
|
|
2868
|
+
stableReleaseTags[0],
|
|
2869
|
+
tagRegexp,
|
|
2870
|
+
options
|
|
2871
|
+
);
|
|
2872
|
+
writeDebug(
|
|
2873
|
+
`Extracted preid version: ${preidResult.extractedVersion} and stable version: ${stableResult.extractedVersion} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2874
|
+
workspaceConfig
|
|
2875
|
+
);
|
|
2876
|
+
const preidBaseVersion = coerce(preidResult.extractedVersion)?.version;
|
|
2877
|
+
const stableVersion = stableResult.extractedVersion;
|
|
2878
|
+
if (preidBaseVersion && stableVersion && gte(stableVersion, preidBaseVersion)) {
|
|
2879
|
+
writeDebug(
|
|
2880
|
+
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern}) because its version (${stableVersion}) is greater than or equal to the base version of the latest preid tag (${preidBaseVersion})`,
|
|
2881
|
+
workspaceConfig
|
|
2882
|
+
);
|
|
2883
|
+
return stableResult;
|
|
2884
|
+
}
|
|
2885
|
+
return preidResult;
|
|
2886
|
+
}
|
|
2887
|
+
if (preidReleaseTags.length > 0) {
|
|
2888
|
+
writeDebug(
|
|
2889
|
+
`Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2890
|
+
workspaceConfig
|
|
2891
|
+
);
|
|
2892
|
+
return extractTagAndVersion(preidReleaseTags[0], tagRegexp, options);
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
if (stableReleaseTags.length > 0) {
|
|
2896
|
+
writeDebug(
|
|
2897
|
+
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2898
|
+
workspaceConfig
|
|
2899
|
+
);
|
|
2900
|
+
return extractTagAndVersion(stableReleaseTags[0], tagRegexp, options);
|
|
2901
|
+
}
|
|
2902
|
+
return null;
|
|
2903
|
+
} catch {
|
|
2904
|
+
return null;
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2803
2907
|
|
|
2804
2908
|
// src/utilities/omit.ts
|
|
2805
2909
|
function omit(obj, keys) {
|
|
@@ -3357,7 +3461,9 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
|
|
|
3357
3461
|
...DEFAULT_VERSION_RELEASE_CONFIG
|
|
3358
3462
|
},
|
|
3359
3463
|
releaseTag: {
|
|
3360
|
-
|
|
3464
|
+
checkAllBranchesWhen: true,
|
|
3465
|
+
preferDockerVersion: false,
|
|
3466
|
+
strictPreid: true
|
|
3361
3467
|
},
|
|
3362
3468
|
versionPlans: false
|
|
3363
3469
|
};
|
|
@@ -3580,21 +3686,10 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3580
3686
|
};
|
|
3581
3687
|
}
|
|
3582
3688
|
function formatConfigLog(config5) {
|
|
3583
|
-
return formatLogMessage(
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
Object.entries(config5.groups ?? {}).map(([name, group]) => [
|
|
3588
|
-
name,
|
|
3589
|
-
{
|
|
3590
|
-
...omit(group, ["projects"]),
|
|
3591
|
-
projects: group.projects.length ? group.projects : "No projects"
|
|
3592
|
-
}
|
|
3593
|
-
])
|
|
3594
|
-
)
|
|
3595
|
-
},
|
|
3596
|
-
{ sort: true, skip: ["workspaceConfig"] }
|
|
3597
|
-
);
|
|
3689
|
+
return formatLogMessage(config5, {
|
|
3690
|
+
sort: true,
|
|
3691
|
+
skip: ["workspaceConfig", "conventionalCommits"]
|
|
3692
|
+
});
|
|
3598
3693
|
}
|
|
3599
3694
|
var validReleaseVersionPrefixes = ["auto", "", "~", "^", "="];
|
|
3600
3695
|
var ReleaseGraph = class _ReleaseGraph {
|
|
@@ -3988,6 +4083,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
3988
4083
|
};
|
|
3989
4084
|
if (releaseGroupNode.group.projectsRelationship === "fixed" && !releaseTagPattern.includes("{projectName}")) {
|
|
3990
4085
|
const groupReleaseTag = await getLatestGitTagForPattern(
|
|
4086
|
+
this.workspaceConfig,
|
|
3991
4087
|
releaseTagPattern,
|
|
3992
4088
|
additionalInterpolationData,
|
|
3993
4089
|
this.resolveRepositoryTags.bind(this),
|
|
@@ -3997,6 +4093,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
3997
4093
|
"{releaseGroupName}"
|
|
3998
4094
|
) ? releaseTagPattern.replace("{releaseGroupName}", "{projectName}") : `{projectName}@${releaseTagPattern}`;
|
|
3999
4095
|
const projectReleaseTag = await getLatestGitTagForPattern(
|
|
4096
|
+
this.workspaceConfig,
|
|
4000
4097
|
projectReleaseTagPattern,
|
|
4001
4098
|
additionalInterpolationData,
|
|
4002
4099
|
this.resolveRepositoryTags.bind(this),
|
|
@@ -4009,7 +4106,7 @@ Group release tag: ${groupReleaseTag?.tag}
|
|
|
4009
4106
|
Project release tag: ${projectReleaseTag?.tag}`,
|
|
4010
4107
|
this.workspaceConfig
|
|
4011
4108
|
);
|
|
4012
|
-
if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion &&
|
|
4109
|
+
if (projectReleaseTag?.extractedVersion && groupReleaseTag?.extractedVersion && gte2(
|
|
4013
4110
|
projectReleaseTag.extractedVersion,
|
|
4014
4111
|
groupReleaseTag.extractedVersion
|
|
4015
4112
|
)) {
|
|
@@ -4019,6 +4116,7 @@ Project release tag: ${projectReleaseTag?.tag}`,
|
|
|
4019
4116
|
}
|
|
4020
4117
|
} else {
|
|
4021
4118
|
latestMatchingGitTag = await getLatestGitTagForPattern(
|
|
4119
|
+
this.workspaceConfig,
|
|
4022
4120
|
releaseTagPattern,
|
|
4023
4121
|
additionalInterpolationData,
|
|
4024
4122
|
this.resolveRepositoryTags.bind(this),
|
|
@@ -5150,6 +5248,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5150
5248
|
for (const project of projectNodes) {
|
|
5151
5249
|
let changes = null;
|
|
5152
5250
|
let fromRef = options.from || (await getLatestGitTagForPattern(
|
|
5251
|
+
this.workspaceConfig,
|
|
5153
5252
|
releaseGroup.releaseTag.pattern,
|
|
5154
5253
|
{
|
|
5155
5254
|
projectName: project.name,
|
|
@@ -5245,6 +5344,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5245
5344
|
} else {
|
|
5246
5345
|
let changes = [];
|
|
5247
5346
|
let fromRef = options.from || (await getLatestGitTagForPattern(
|
|
5347
|
+
this.workspaceConfig,
|
|
5248
5348
|
releaseGroup.releaseTag.pattern,
|
|
5249
5349
|
{
|
|
5250
5350
|
releaseGroupName: releaseGroup.name
|
|
@@ -5762,7 +5862,7 @@ var runRelease = async (config5, {
|
|
|
5762
5862
|
writeDebug("Determining the current release versions...", config5);
|
|
5763
5863
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
5764
5864
|
dryRun,
|
|
5765
|
-
verbose:
|
|
5865
|
+
verbose: true,
|
|
5766
5866
|
preid: config5.preid,
|
|
5767
5867
|
stageChanges: true,
|
|
5768
5868
|
gitCommit: false
|
|
@@ -5771,7 +5871,7 @@ var runRelease = async (config5, {
|
|
|
5771
5871
|
version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
|
|
5772
5872
|
versionData: projectsVersionData,
|
|
5773
5873
|
dryRun,
|
|
5774
|
-
verbose:
|
|
5874
|
+
verbose: true,
|
|
5775
5875
|
to,
|
|
5776
5876
|
from,
|
|
5777
5877
|
releaseGraph
|
|
@@ -5796,7 +5896,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
5796
5896
|
await updatePackageManifests(projectsVersionData, config5);
|
|
5797
5897
|
const result = await releaseClient.releasePublish({
|
|
5798
5898
|
dryRun,
|
|
5799
|
-
verbose:
|
|
5899
|
+
verbose: true
|
|
5800
5900
|
});
|
|
5801
5901
|
const failedProjects = Object.keys(result).filter(
|
|
5802
5902
|
(key) => result[key]?.code && result[key]?.code > 0
|