@treeseed/sdk 0.12.6 → 0.12.7
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.
|
@@ -1011,30 +1011,7 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
|
|
|
1011
1011
|
version: string | null;
|
|
1012
1012
|
result: {
|
|
1013
1013
|
status: string;
|
|
1014
|
-
adapter: string;
|
|
1015
|
-
command: string;
|
|
1016
|
-
packageLock?: undefined;
|
|
1017
1014
|
reason?: undefined;
|
|
1018
|
-
} | {
|
|
1019
|
-
status: string;
|
|
1020
|
-
adapter: string;
|
|
1021
|
-
packageLock: {
|
|
1022
|
-
status: string;
|
|
1023
|
-
reason: string;
|
|
1024
|
-
path?: undefined;
|
|
1025
|
-
} | {
|
|
1026
|
-
status: string;
|
|
1027
|
-
path: string;
|
|
1028
|
-
reason?: undefined;
|
|
1029
|
-
};
|
|
1030
|
-
command?: undefined;
|
|
1031
|
-
reason?: undefined;
|
|
1032
|
-
} | {
|
|
1033
|
-
status: string;
|
|
1034
|
-
adapter: string;
|
|
1035
|
-
reason: string;
|
|
1036
|
-
command?: undefined;
|
|
1037
|
-
packageLock?: undefined;
|
|
1038
1015
|
} | {
|
|
1039
1016
|
status: string;
|
|
1040
1017
|
reason: string;
|
|
@@ -1068,6 +1045,13 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
|
|
|
1068
1045
|
changelogUpdated: boolean;
|
|
1069
1046
|
entry: string;
|
|
1070
1047
|
};
|
|
1048
|
+
rootInstall: {
|
|
1049
|
+
status: string;
|
|
1050
|
+
reason: string;
|
|
1051
|
+
} | {
|
|
1052
|
+
status: string;
|
|
1053
|
+
reason: null;
|
|
1054
|
+
};
|
|
1071
1055
|
commit: {
|
|
1072
1056
|
committed: boolean;
|
|
1073
1057
|
commitSha: string;
|
|
@@ -1887,9 +1887,9 @@ function prepareAdapterReleaseMetadata(root, pkg, version) {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
if (existsSync(resolve(pkg.dir, "package.json"))) {
|
|
1889
1889
|
return {
|
|
1890
|
-
status: "
|
|
1890
|
+
status: "npm-install",
|
|
1891
1891
|
adapter: adapter?.id ?? pkg.name,
|
|
1892
|
-
|
|
1892
|
+
...runReleaseNpmInstall(pkg.dir, { workspaceRoot: root })
|
|
1893
1893
|
};
|
|
1894
1894
|
}
|
|
1895
1895
|
return { status: "skipped", adapter: adapter?.id ?? pkg.name, reason: "no package metadata updater" };
|
|
@@ -5350,10 +5350,10 @@ ${blockers.join("\n")}`, {
|
|
|
5350
5350
|
const adapterMetadata = checkedOutWorkspacePackageRepos(root).filter((pkg) => selectedPackageSet.has(pkg.name)).map((pkg) => ({
|
|
5351
5351
|
name: pkg.name,
|
|
5352
5352
|
version: selectedVersions.get(pkg.name) ?? null,
|
|
5353
|
-
result: selectedVersions.has(pkg.name) ?
|
|
5353
|
+
result: selectedVersions.has(pkg.name) ? { status: "pending-package-release-step" } : { status: "skipped", reason: "no planned version" }
|
|
5354
5354
|
}));
|
|
5355
5355
|
const rootPackageLock = updatePackageLockRootVersion(root, plannedRelease.rootVersion);
|
|
5356
|
-
const remainingDevReferences = collectInternalDevReferenceIssues(root, selectedPackageSet).filter((issue) => issue.reason
|
|
5356
|
+
const remainingDevReferences = collectInternalDevReferenceIssues(root, selectedPackageSet).filter((issue) => !issue.reason.startsWith("lockfile-"));
|
|
5357
5357
|
if (remainingDevReferences.length > 0) {
|
|
5358
5358
|
const rendered = remainingDevReferences.map((issue) => `${issue.repoName}: ${issue.filePath} ${issue.dependencyName ?? ""} ${issue.reason} ${issue.spec}`).join("\n");
|
|
5359
5359
|
throw new Error(`Stable release metadata still contains development references.
|
|
@@ -5371,6 +5371,7 @@ ${rendered}`);
|
|
|
5371
5371
|
const version = selectedVersions.get(pkg.name);
|
|
5372
5372
|
if (!version) continue;
|
|
5373
5373
|
const packageRelease = await executeJournalStep(root, workflowRun.runId, `release-${pkg.name}`, async () => {
|
|
5374
|
+
const metadata = prepareAdapterReleaseMetadata(root, pkg, version);
|
|
5374
5375
|
const changelog = updateReleaseChangelog(pkg.dir, {
|
|
5375
5376
|
version,
|
|
5376
5377
|
sourceRef: `origin/${PRODUCTION_BRANCH}`,
|
|
@@ -5405,6 +5406,7 @@ ${rendered}`);
|
|
|
5405
5406
|
path: relative(root, pkg.dir),
|
|
5406
5407
|
version,
|
|
5407
5408
|
changelog,
|
|
5409
|
+
metadata,
|
|
5408
5410
|
commit,
|
|
5409
5411
|
promotion,
|
|
5410
5412
|
tag,
|
|
@@ -5415,6 +5417,7 @@ ${rendered}`);
|
|
|
5415
5417
|
packageReleases.push(packageRelease);
|
|
5416
5418
|
}
|
|
5417
5419
|
const rootRelease = await executeJournalStep(root, workflowRun.runId, "release-root", () => {
|
|
5420
|
+
const rootInstall = runReleaseNpmInstall(root, { workspaceRoot: root });
|
|
5418
5421
|
const changelog = updateReleaseChangelog(repoRoot(root), {
|
|
5419
5422
|
version: plannedRelease.rootVersion,
|
|
5420
5423
|
sourceRef: `origin/${PRODUCTION_BRANCH}`,
|
|
@@ -5438,6 +5441,7 @@ ${rendered}`);
|
|
|
5438
5441
|
version: plannedRelease.rootVersion,
|
|
5439
5442
|
releaseTag: plannedRelease.releaseTag,
|
|
5440
5443
|
changelog,
|
|
5444
|
+
rootInstall,
|
|
5441
5445
|
commit,
|
|
5442
5446
|
promotion,
|
|
5443
5447
|
tag
|