@icebreakers/monorepo 6.1.0 → 6.2.1
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/{baseline-Dpdng8Pw.mjs → baseline-BQu4IKz4.mjs} +1 -1
- package/dist/{catalog-A1_tGyBz.mjs → catalog-CCIOouaT.mjs} +3 -3
- package/dist/cli.mjs +340 -68
- package/dist/{commands-C8PiGh9h.mjs → commands-CWJn-_PI.mjs} +4383 -1788
- package/dist/{config-CtnhpveO.mjs → config-DnZHBngA.mjs} +3 -3
- package/dist/{create-flow-CqtNwZs7.mjs → create-flow-C0CPG04P.mjs} +3 -3
- package/dist/{deps-CFZftEq2.mjs → deps-8UyoQQd6.mjs} +3 -3
- package/dist/{execute-DE3pJ4nx.mjs → execute-BYzX0pIK.mjs} +2 -2
- package/dist/{execute-Brlvq-TY.mjs → execute-CiqUeURT.mjs} +2 -2
- package/dist/{format-BXQ2yRvk.mjs → format-B059MkpS.mjs} +1 -1
- package/dist/{index-BJaI8Sig.d.mts → index-B80WWXOe.d.mts} +28 -1
- package/dist/index.d.mts +457 -41
- package/dist/index.mjs +10 -10
- package/dist/{inputs-DRWom7Va.mjs → inputs-DfmfV3ft.mjs} +1 -1
- package/dist/{npm-CrQi6Gci.mjs → npm-DO0l0ypv.mjs} +1 -1
- package/dist/{plan-DT1Gz8tE.mjs → plan-Cnl_s1t5.mjs} +1 -1
- package/dist/{run-BBf92Scj.mjs → run-BO8ggtNx.mjs} +4 -4
- package/dist/{save-CCCUswjG.mjs → save-DJijxFFK.mjs} +3 -3
- package/dist/{scan-KcMaJTx2.mjs → scan-BBXEVepK.mjs} +2 -2
- package/dist/{template-drift-BKCMx9vC.mjs → template-drift-BD8maCoP.mjs} +3 -3
- package/dist/tooling-entry.d.mts +1 -1
- package/dist/tooling-entry.mjs +2 -2
- package/dist/{transaction-CTFrGYJO.mjs → transaction-CglLPcZ_.mjs} +2 -2
- package/dist/{tsconfig-CO_6DRDo.mjs → tsconfig-DCmFfA6W.mjs} +11 -3
- package/dist/{vitest-Deitv0TQ.mjs → vitest-D8nnSzlj.mjs} +1 -1
- package/dist/{workspace-tasks-CbetXdoh.mjs → workspace-tasks-BK8EQ2x4.mjs} +6 -6
- package/package.json +9 -7
- package/resources/release-auto-changeset/workflow.yml +93 -0
- package/resources/release-snapshot/build.yml +127 -0
- package/resources/release-snapshot/publish.yml +180 -0
- package/resources/release-validation/README.md +52 -0
- package/resources/release-validation/policy.json +3 -0
- package/resources/release-validation/workflow.yml +43 -0
- package/resources/skills/repoctl/references/commands.md +15 -0
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as WorkspaceGraphQueryError, At as exists, B as saveKnipBaseline, Bt as writeJSON, Dt as copy, Ft as outputJson, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, It as pathExists, J as getWorkspaceGraph, Jt as GitClient, Lt as readJSON, M as formatEnvironmentCache, Mt as isIgnorableFsError, Nt as outputFile, Ot as ensureDir, P as checkEnvironmentCache, Pt as outputJSON, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as readJson, Ut as getWorkspaceData, Vt as writeJson, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir, a as inspectWorkspaceOwners, b as planGenerate, bt as rootDir, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, kt as ensureFile, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, vt as cliName, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir, z as runKnipCheck, zt as remove } from "./workspace-tasks-
|
|
2
|
-
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-
|
|
3
|
-
import { $ as
|
|
4
|
-
import { F as validateMonorepoConfig, N as ConfigValidationError, P as assertMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as version, k as name, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
5
|
-
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-
|
|
6
|
-
import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-
|
|
7
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-
|
|
8
|
-
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-
|
|
9
|
-
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-
|
|
1
|
+
import { $ as WorkspaceGraphQueryError, At as exists, B as saveKnipBaseline, Bt as writeJSON, Dt as copy, Ft as outputJson, Gt as getWorkspacePackages, Ht as clearWorkspaceCache, I as getKnipConfigurationSuggestions, It as pathExists, J as getWorkspaceGraph, Jt as GitClient, Lt as readJSON, M as formatEnvironmentCache, Mt as isIgnorableFsError, Nt as outputFile, Ot as ensureDir, P as checkEnvironmentCache, Pt as outputJSON, Q as whyWorkspaceDependency, R as planKnipCheck, Rt as readJson, Ut as getWorkspaceData, Vt as writeJson, W as analyzeTurboRuns, Wt as getWorkspacePackageSummaries, X as filterWorkspaceGraph, Z as getWorkspaceImpact, _ as planTemplateLink, _t as assetsDir, a as inspectWorkspaceOwners, b as planGenerate, bt as rootDir, c as loadTemplateInstanceRegistry, f as recoverTemplateUpgrade, ft as setByPath, g as applyTemplateLinkPlan, i as planCodeowners, kt as ensureFile, l as rebuildTemplateInstanceBaseline, m as planTemplateUpgrade, n as locateWorkspace, o as listTemplateInstances, p as applyTemplateUpgradePlan, r as applyCodeownersPlan, s as loadTemplateBaseline, t as getWorkspaceTaskCatalog, tt as resolveWorkspaceGraphNode, u as relocateTemplateInstance, vt as cliName, x as generators, xt as templatesDir, y as applyGeneratePlan, yt as packageDir, z as runKnipCheck, zt as remove } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
2
|
+
import { a as resolveFullWorkspaceCheckPlan, c as verifyCommitMsg, d as logger, i as getKnownRepoCheckCommands, l as verifyPreCommit, o as resolveRecommendedCheckPlan, r as resolveAffectedCheckPlan, s as runRecommendedCheck, t as runCheckWithReport } from "./execute-BYzX0pIK.mjs";
|
|
3
|
+
import { $ as planPublicApiUpdate, A as createSnapshotPlan, At as init, B as planOrganizationPresetAssets, Bt as runDoctor, Ct as parsePublishSummary, D as releaseNightly, Dt as createAutoChangesetPlan, E as createNightlyPlan, Et as applyAutoChangeset, F as checkPackages, Ft as createContext, G as planInstallSecurityPreset, Gt as applyCreateNewProjectPlan, H as planDevContainer, Ht as planDoctorFix, I as getMaintenanceWorkflow, It as collectEnvInfo, J as planDocsDeployment, Jt as resolveCreateNewProjectPlan, K as deployDocs, Kt as createNewProject, L as prepareMaintenanceUpgrade, Lt as collectEnvPaths, M as syncProjectReferences, Mt as initTooling, N as applyProjectReferencesPlan, Nt as normalizeInitToolingTargets, Ot as getAutoChangesetWorkflow, P as planProjectReferences, Pt as initToolingTargets, Q as applyPublicApiUpdate, Qt as resolveRemoteTemplateSource, R as detectMaintenanceVersionChange, Rt as collectEnvSnapshot, S as snapshotPlanDigest, St as GitHubApiError, T as createReleasePlan, U as installGitHooks, Ut as planUpgrade, V as applyDevContainerPlan, Vt as applyDoctorFixPlan, W as applyInstallSecurityPreset, Wt as applyUpgradePlan, X as resolveAffectedCheckMatrix, Xt as getTemplateMap, Y as checkPeerDependencies, Yt as getCreateChoices, Z as checkPublicApi, Zt as templateMap, _ as createSnapshotBuildPlan, _t as enterPrerelease, a as planWorkspaceMove, an as sanitizeConfigReport, at as skillTargets, bt as auditReleaseOidc, c as applyToolingCapability, cn as verifyStagedTypecheck, ct as readReleasePreparationPolicy, d as planTemplateValidation, dn as defaultAgenticBaseDir, dt as recoverUnpublished, en as resolveTemplateCatalog, et as formatPublicApiReport, f as getSnapshotWorkflows, fn as generateAgenticTemplate, ft as releaseCi, g as prepareSnapshot, gt as reconcileRelease, h as publishPreparedSnapshot, ht as releaseStable, i as applyWorkspaceMovePlan, in as explainMonorepoConfig, it as getSkillTargetPaths, j as checkProjectReferences, jt as initMetadata, k as releaseSnapshot, kt as setVscodeBinaryMirror, l as planToolingCapability, ln as verifyPrePush, lt as repairReleaseNotes, mn as loadAgenticTasks, mt as publishStable, n as applyWorkspaceRemovalPlan, nn as updateIssueTemplateConfig, nt as formatUpgradePlan, o as applyWorkspaceArtifactPlan, on as validateConfigFile, ot as syncSkills, pn as generateAgenticTemplates, pt as prepareStable, q as DocsDeploymentError, r as planWorkspaceRemoval, rn as inspectMonorepoConfig, rt as checkTemplates, s as planWorkspaceArtifact, sn as cleanProjects, st as validateReleasePreparation, tt as upgradeMonorepo, u as validateTemplate, un as createTimestampFolderName, ut as createReleasePullRequest, v as verifySnapshotRun, vt as exitPrerelease, x as verifyPreparedSnapshotConsumer, xt as GitHubClient, y as freezeSnapshotSource, yt as releasePrerelease, z as applyOrganizationPresetAssets, zt as collectEnvSupportBundle } from "./commands-CWJn-_PI.mjs";
|
|
4
|
+
import { F as validateMonorepoConfig, N as ConfigValidationError, P as assertMonorepoConfig, _ as listToolingCapabilities, d as loadMonorepoConfig, f as loadMonorepoConfigDetails, h as resolveOrganizationPresets, i as loadMonorepoToolingConfig, j as version, k as name, l as defineMonorepoConfig, m as resolveToolingConfig, n as defineTsconfigConfig, p as resolveCommandConfig, s as configExtensions, t as createMonorepoTsconfig, u as getRepoctlConfigCandidates } from "./tsconfig-DCmFfA6W.mjs";
|
|
5
|
+
import { c as selectCommandOverrides, s as resolveCommandValues } from "./scan-BBXEVepK.mjs";
|
|
6
|
+
import { B as toWorkspaceAssetPath, E as checkDependencyAdmission, R as isGitignoreFile, T as checkWorkspaceBoundaries, V as toWorkspaceGitignorePath, b as resolveReleaseBranches, f as inspectInstallSecurity, i as hasTemplateDriftIssues, l as getDoctorRuleIds, r as formatTemplateDriftReport, t as checkTemplateDrift, z as toPublishGitignorePath } from "./template-drift-BD8maCoP.mjs";
|
|
7
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-D8nnSzlj.mjs";
|
|
8
|
+
import { i as applyDependencyFixPlan, r as planDependencyFix, t as checkDependencies } from "./deps-8UyoQQd6.mjs";
|
|
9
|
+
import { i as applyCatalogMigrationPlan, n as checkCatalogs, r as planCatalogMigration } from "./catalog-CCIOouaT.mjs";
|
|
10
10
|
import crypto from "node:crypto";
|
|
11
11
|
import { Buffer } from "node:buffer";
|
|
12
12
|
//#region src/utils/hash.ts
|
|
@@ -57,4 +57,4 @@ function isMatch(str, arr) {
|
|
|
57
57
|
return false;
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
|
-
export { ConfigValidationError, DocsDeploymentError, GitClient, GitHubApiError, GitHubClient, WorkspaceGraphQueryError, analyzeTurboRuns, applyCatalogMigrationPlan, applyCodeownersPlan, applyCreateNewProjectPlan, applyDependencyFixPlan, applyDevContainerPlan, applyDoctorFixPlan, applyGeneratePlan, applyInstallSecurityPreset, applyOrganizationPresetAssets, applyProjectReferencesPlan, applyPublicApiUpdate, applyTemplateLinkPlan, applyTemplateUpgradePlan, applyToolingCapability, applyUpgradePlan, applyWorkspaceArtifactPlan, applyWorkspaceMovePlan, applyWorkspaceRemovalPlan, assertMonorepoConfig, assetsDir, auditReleaseOidc, checkCatalogs, checkDependencies, checkDependencyAdmission, checkEnvironmentCache, checkPackages, checkPeerDependencies, checkProjectReferences, checkPublicApi, checkTemplateDrift, checkTemplates, checkWorkspaceBoundaries, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createNightlyPlan, createReleasePlan, createReleasePullRequest, createSnapshotPlan, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, deployDocs, detectMaintenanceVersionChange, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, explainMonorepoConfig, filterWorkspaceGraph, formatEnvironmentCache, formatPublicApiReport, formatTemplateDriftReport, formatUpgradePlan, generateAgenticTemplate, generateAgenticTemplates, generators, getCreateChoices, getDoctorRuleIds, getFileHash, getKnipConfigurationSuggestions, getKnownRepoCheckCommands, getMaintenanceWorkflow, getRepoctlConfigCandidates, getSkillTargetPaths, getTemplateMap, getWorkspaceData, getWorkspaceGraph, getWorkspaceImpact, getWorkspacePackageSummaries, getWorkspacePackages, getWorkspaceTaskCatalog, hasTemplateDriftIssues, init, initMetadata, initTooling, initToolingTargets, inspectInstallSecurity, inspectMonorepoConfig, inspectWorkspaceOwners, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, listTemplateInstances, listToolingCapabilities, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, locateWorkspace, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, planCatalogMigration, planCodeowners, planDependencyFix, planDevContainer, planDocsDeployment, planDoctorFix, planGenerate, planInstallSecurityPreset, planKnipCheck, planOrganizationPresetAssets, planProjectReferences, planPublicApiUpdate, planTemplateLink, planTemplateUpgrade, planTemplateValidation, planToolingCapability, planUpgrade, planWorkspaceArtifact, planWorkspaceMove, planWorkspaceRemoval, prepareMaintenanceUpgrade, prepareStable, publishStable, readJSON, readJson, rebuildTemplateInstanceBaseline, reconcileRelease, recoverTemplateUpgrade, recoverUnpublished, releaseCi, releaseNightly, releasePrerelease, releaseSnapshot, releaseStable, relocateTemplateInstance, remove, repairReleaseNotes, resolveAffectedCheckMatrix, resolveAffectedCheckPlan, resolveCommandConfig, resolveCommandValues, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveOrganizationPresets, resolveRecommendedCheckPlan, resolveReleaseBranches, resolveRemoteTemplateSource, resolveTemplateCatalog, resolveToolingConfig, resolveWorkspaceGraphNode, rootDir, runCheckWithReport, runDoctor, runKnipCheck, runRecommendedCheck, sanitizeConfigReport, saveKnipBaseline, selectCommandOverrides, setByPath, setVscodeBinaryMirror, skillTargets, syncProjectReferences, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, validateConfigFile, validateMonorepoConfig, validateTemplate, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyStagedTypecheck, version, whyWorkspaceDependency, writeJSON, writeJson };
|
|
60
|
+
export { ConfigValidationError, DocsDeploymentError, GitClient, GitHubApiError, GitHubClient, WorkspaceGraphQueryError, analyzeTurboRuns, applyAutoChangeset, applyCatalogMigrationPlan, applyCodeownersPlan, applyCreateNewProjectPlan, applyDependencyFixPlan, applyDevContainerPlan, applyDoctorFixPlan, applyGeneratePlan, applyInstallSecurityPreset, applyOrganizationPresetAssets, applyProjectReferencesPlan, applyPublicApiUpdate, applyTemplateLinkPlan, applyTemplateUpgradePlan, applyToolingCapability, applyUpgradePlan, applyWorkspaceArtifactPlan, applyWorkspaceMovePlan, applyWorkspaceRemovalPlan, assertMonorepoConfig, assetsDir, auditReleaseOidc, checkCatalogs, checkDependencies, checkDependencyAdmission, checkEnvironmentCache, checkPackages, checkPeerDependencies, checkProjectReferences, checkPublicApi, checkTemplateDrift, checkTemplates, checkWorkspaceBoundaries, cleanProjects, clearWorkspaceCache, cliName, collectEnvInfo, collectEnvPaths, collectEnvSnapshot, collectEnvSupportBundle, configExtensions, copy, createAutoChangesetPlan, createContext, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, createNewProject, createNightlyPlan, createReleasePlan, createReleasePullRequest, createSnapshotBuildPlan, createSnapshotPlan, createTimestampFolderName, defaultAgenticBaseDir, defineCommitlintConfig, defineEslintConfig, defineMonorepoConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, deployDocs, detectMaintenanceVersionChange, ensureDir, ensureFile, enterPrerelease, escapeStringRegexp, exists, exitPrerelease, explainMonorepoConfig, filterWorkspaceGraph, formatEnvironmentCache, formatPublicApiReport, formatTemplateDriftReport, formatUpgradePlan, freezeSnapshotSource, generateAgenticTemplate, generateAgenticTemplates, generators, getAutoChangesetWorkflow, getCreateChoices, getDoctorRuleIds, getFileHash, getKnipConfigurationSuggestions, getKnownRepoCheckCommands, getMaintenanceWorkflow, getRepoctlConfigCandidates, getSkillTargetPaths, getSnapshotWorkflows, getTemplateMap, getWorkspaceData, getWorkspaceGraph, getWorkspaceImpact, getWorkspacePackageSummaries, getWorkspacePackages, getWorkspaceTaskCatalog, hasTemplateDriftIssues, init, initMetadata, initTooling, initToolingTargets, inspectInstallSecurity, inspectMonorepoConfig, inspectWorkspaceOwners, installGitHooks, isFileChanged, isGitignoreFile, isIgnorableFsError, isMatch, listTemplateInstances, listToolingCapabilities, loadAgenticTasks, loadMonorepoConfig, loadMonorepoConfigDetails, loadMonorepoToolingConfig, loadTemplateBaseline, loadTemplateInstanceRegistry, locateWorkspace, logger, normalizeInitToolingTargets, outputFile, outputJSON, outputJson, packageDir, name as packageName, parsePublishSummary, pathExists, planCatalogMigration, planCodeowners, planDependencyFix, planDevContainer, planDocsDeployment, planDoctorFix, planGenerate, planInstallSecurityPreset, planKnipCheck, planOrganizationPresetAssets, planProjectReferences, planPublicApiUpdate, planTemplateLink, planTemplateUpgrade, planTemplateValidation, planToolingCapability, planUpgrade, planWorkspaceArtifact, planWorkspaceMove, planWorkspaceRemoval, prepareMaintenanceUpgrade, prepareSnapshot, prepareStable, publishPreparedSnapshot, publishStable, readJSON, readJson, readReleasePreparationPolicy, rebuildTemplateInstanceBaseline, reconcileRelease, recoverTemplateUpgrade, recoverUnpublished, releaseCi, releaseNightly, releasePrerelease, releaseSnapshot, releaseStable, relocateTemplateInstance, remove, repairReleaseNotes, resolveAffectedCheckMatrix, resolveAffectedCheckPlan, resolveCommandConfig, resolveCommandValues, resolveCreateNewProjectPlan, resolveFullWorkspaceCheckPlan, resolveOrganizationPresets, resolveRecommendedCheckPlan, resolveReleaseBranches, resolveRemoteTemplateSource, resolveTemplateCatalog, resolveToolingConfig, resolveWorkspaceGraphNode, rootDir, runCheckWithReport, runDoctor, runKnipCheck, runRecommendedCheck, sanitizeConfigReport, saveKnipBaseline, selectCommandOverrides, setByPath, setVscodeBinaryMirror, skillTargets, snapshotPlanDigest, syncProjectReferences, syncSkills, templateMap, templatesDir, toPublishGitignorePath, toWorkspaceAssetPath, toWorkspaceGitignorePath, updateIssueTemplateConfig, upgradeMonorepo, validateConfigFile, validateMonorepoConfig, validateReleasePreparation, validateTemplate, verifyCommitMsg, verifyPreCommit, verifyPrePush, verifyPreparedSnapshotConsumer, verifySnapshotRun, verifyStagedTypecheck, version, whyWorkspaceDependency, writeJSON, writeJson };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as record, yt as packageDir } from "./workspace-tasks-
|
|
1
|
+
import { at as record, yt as packageDir } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
2
2
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
3
3
|
import path from "pathe";
|
|
4
4
|
import process from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as stopCheckProcessTree } from "./workspace-tasks-
|
|
2
|
-
import { t as knipConfigurationInputs } from "./inputs-
|
|
3
|
-
import { planKnipCheck } from "./plan-
|
|
4
|
-
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-
|
|
1
|
+
import { U as stopCheckProcessTree } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
2
|
+
import { t as knipConfigurationInputs } from "./inputs-DfmfV3ft.mjs";
|
|
3
|
+
import { planKnipCheck } from "./plan-Cnl_s1t5.mjs";
|
|
4
|
+
import { i as summarizeKnip, r as parseKnipOutput, t as compareKnipBaseline } from "./baseline-BQu4IKz4.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import { Buffer } from "node:buffer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-
|
|
2
|
-
import { knipRoot } from "./plan-
|
|
3
|
-
import { n as validateKnipBaseline } from "./baseline-
|
|
1
|
+
import { ht as isWithin, mt as assertSafePath, ot as safeFile } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
2
|
+
import { knipRoot } from "./plan-Cnl_s1t5.mjs";
|
|
3
|
+
import { n as validateKnipBaseline } from "./baseline-BQu4IKz4.mjs";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import { link, lstat, open, readFile, rename, unlink } from "node:fs/promises";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { St as localize, at as record, it as readInput, qt as findWorkspacePackages, rt as hash } from "./workspace-tasks-
|
|
2
|
-
import { M as mergeConfigValues, N as ConfigValidationError, P as assertMonorepoConfig, V as commandSchemas, Y as validateSchema, f as loadMonorepoConfigDetails, q as replaceDocsTarget, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
1
|
+
import { St as localize, at as record, it as readInput, qt as findWorkspacePackages, rt as hash } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
2
|
+
import { M as mergeConfigValues, N as ConfigValidationError, P as assertMonorepoConfig, V as commandSchemas, Y as validateSchema, f as loadMonorepoConfigDetails, q as replaceDocsTarget, u as getRepoctlConfigCandidates } from "./tsconfig-DCmFfA6W.mjs";
|
|
3
3
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import { access, realpath } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$4, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-
|
|
3
|
-
import { D as relativeFile, N as ConfigValidationError, T as readOptional, U as resolveNightlyConfig, f as loadMonorepoConfigDetails, p as resolveCommandConfig, w as hash$1 } from "./tsconfig-
|
|
4
|
-
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-
|
|
2
|
+
import { J as getWorkspaceGraph, St as localize, Y as parseDependencyReference, at as record$4, jt as fs$2, nt as workspaceDependencyTypes, rt as hash, ut as hasLegacyToolingReference } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
3
|
+
import { D as relativeFile, N as ConfigValidationError, T as readOptional, U as resolveNightlyConfig, f as loadMonorepoConfigDetails, p as resolveCommandConfig, w as hash$1 } from "./tsconfig-DCmFfA6W.mjs";
|
|
4
|
+
import { a as dependencySections, i as rangesOverlap, r as parseSpecifier, t as scanDependencies } from "./scan-BBXEVepK.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { findWorkspaceDir } from "@pnpm/find-workspace-dir";
|
|
7
7
|
import path from "pathe";
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as MonorepoVitestConfigOverrides, E as MonorepoVitestProjectConfigResult, S as MonorepoVitestConfigOptions, T as MonorepoVitestProjectConfigOptions, _ as DefineVitestProjectConfigOptions, a as createMonorepoTsconfig, b as MonorepoStylelintConfig, c as createMonorepoCommitlintConfig, d as defineCommitlintConfig, f as defineEslintConfig, g as DefineVitestConfigOptions, h as DefineEslintConfigOptions, i as defineVitestProjectConfig, l as createMonorepoEslintConfig, m as DefineConfigOptions, n as createMonorepoVitestProjectConfig, o as defineTsconfigConfig, p as defineStylelintConfig, r as defineVitestConfig, s as loadMonorepoToolingConfig, t as createMonorepoVitestConfig, u as createMonorepoStylelintConfig, v as MonorepoCommitlintConfig, w as MonorepoVitestConfigResult, x as MonorepoTsconfig, y as MonorepoEslintConfig } from "./index-
|
|
1
|
+
import { C as MonorepoVitestConfigOverrides, E as MonorepoVitestProjectConfigResult, S as MonorepoVitestConfigOptions, T as MonorepoVitestProjectConfigOptions, _ as DefineVitestProjectConfigOptions, a as createMonorepoTsconfig, b as MonorepoStylelintConfig, c as createMonorepoCommitlintConfig, d as defineCommitlintConfig, f as defineEslintConfig, g as DefineVitestConfigOptions, h as DefineEslintConfigOptions, i as defineVitestProjectConfig, l as createMonorepoEslintConfig, m as DefineConfigOptions, n as createMonorepoVitestProjectConfig, o as defineTsconfigConfig, p as defineStylelintConfig, r as defineVitestConfig, s as loadMonorepoToolingConfig, t as createMonorepoVitestConfig, u as createMonorepoStylelintConfig, v as MonorepoCommitlintConfig, w as MonorepoVitestConfigResult, x as MonorepoTsconfig, y as MonorepoEslintConfig } from "./index-B80WWXOe.mjs";
|
|
2
2
|
export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
package/dist/tooling-entry.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-
|
|
2
|
-
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-
|
|
1
|
+
import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-DCmFfA6W.mjs";
|
|
2
|
+
import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-D8nnSzlj.mjs";
|
|
3
3
|
export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-
|
|
2
|
-
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-
|
|
1
|
+
import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-BK8EQ2x4.mjs";
|
|
2
|
+
import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-BBXEVepK.mjs";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
//#region src/commands/deps/report.ts
|
|
5
5
|
function classify(group) {
|
|
@@ -697,6 +697,12 @@ const toolingSchema = object({
|
|
|
697
697
|
}, ["entryPoint", "baseline"])),
|
|
698
698
|
tsconfig: string
|
|
699
699
|
}, ["entries"])),
|
|
700
|
+
hooks: object({ preCommit: array(object({
|
|
701
|
+
name: string,
|
|
702
|
+
run: string,
|
|
703
|
+
glob: string,
|
|
704
|
+
stageFixed: boolean
|
|
705
|
+
}, ["name", "run"])) }),
|
|
700
706
|
projectReferences: object({
|
|
701
707
|
enabled: boolean,
|
|
702
708
|
root: string,
|
|
@@ -915,7 +921,7 @@ function mergeConfigValues(layers, replaceObject) {
|
|
|
915
921
|
//#endregion
|
|
916
922
|
//#region package.json
|
|
917
923
|
var name = "@icebreakers/monorepo";
|
|
918
|
-
var version = "6.1
|
|
924
|
+
var version = "6.2.1";
|
|
919
925
|
var engines = { "node": "^22.23.4 || ^24.22.1 || >=26.12.1" };
|
|
920
926
|
var package_default = {
|
|
921
927
|
name,
|
|
@@ -1039,7 +1045,8 @@ var package_default = {
|
|
|
1039
1045
|
"tinyglobby": "^0.2.17",
|
|
1040
1046
|
"validate-npm-package-name": "^7.0.2",
|
|
1041
1047
|
"vitest": "catalog:",
|
|
1042
|
-
"yaml": "catalog:"
|
|
1048
|
+
"yaml": "catalog:",
|
|
1049
|
+
"yauzl": "3.4.0"
|
|
1043
1050
|
},
|
|
1044
1051
|
devDependencies: {
|
|
1045
1052
|
"@microsoft/api-extractor": "7.59.4",
|
|
@@ -1050,9 +1057,10 @@ var package_default = {
|
|
|
1050
1057
|
"@types/pacote": "^11.1.8",
|
|
1051
1058
|
"@types/semver": "catalog:",
|
|
1052
1059
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
1060
|
+
"@types/yauzl": "3.4.0",
|
|
1053
1061
|
"ci-info": "^4.4.0",
|
|
1054
1062
|
"fdir": "^6.5.0",
|
|
1055
|
-
"knip": "6.
|
|
1063
|
+
"knip": "6.42.0"
|
|
1056
1064
|
},
|
|
1057
1065
|
publishConfig: {
|
|
1058
1066
|
"access": "public",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-
|
|
1
|
+
import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-DCmFfA6W.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { N as ConfigValidationError, f as loadMonorepoConfigDetails, j as version, u as getRepoctlConfigCandidates } from "./tsconfig-
|
|
2
|
+
import { N as ConfigValidationError, f as loadMonorepoConfigDetails, j as version, u as getRepoctlConfigCandidates } from "./tsconfig-DCmFfA6W.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import gitUrlParse from "git-url-parse";
|
|
5
5
|
import { simpleGit } from "simple-git";
|
|
@@ -23,8 +23,8 @@ import { TextDecoder as TextDecoder$1 } from "node:util";
|
|
|
23
23
|
import { glob } from "tinyglobby";
|
|
24
24
|
import { diff3Merge } from "node-diff3";
|
|
25
25
|
import { parse as parse$1 } from "comment-json";
|
|
26
|
-
import { performance } from "node:perf_hooks";
|
|
27
26
|
import micromatch from "micromatch";
|
|
27
|
+
import { performance } from "node:perf_hooks";
|
|
28
28
|
import { parse as parse$2 } from "@babel/parser";
|
|
29
29
|
//#region src/core/git.ts
|
|
30
30
|
/**
|
|
@@ -1986,16 +1986,16 @@ var knip_exports = /* @__PURE__ */ __exportAll({
|
|
|
1986
1986
|
saveKnipBaseline: () => saveKnipBaseline
|
|
1987
1987
|
});
|
|
1988
1988
|
async function planKnipCheck(cwd, options = {}) {
|
|
1989
|
-
return (await import("./plan-
|
|
1989
|
+
return (await import("./plan-Cnl_s1t5.mjs")).planKnipCheck(cwd, options);
|
|
1990
1990
|
}
|
|
1991
1991
|
async function runKnipCheck(cwd, options = {}) {
|
|
1992
|
-
return (await import("./run-
|
|
1992
|
+
return (await import("./run-BO8ggtNx.mjs")).runKnipCheck(cwd, options);
|
|
1993
1993
|
}
|
|
1994
1994
|
async function getKnipConfigurationSuggestions(cwd) {
|
|
1995
|
-
return (await import("./config-
|
|
1995
|
+
return (await import("./config-DnZHBngA.mjs")).getKnipConfigurationSuggestions(cwd);
|
|
1996
1996
|
}
|
|
1997
1997
|
async function saveKnipBaseline(cwd, report, file) {
|
|
1998
|
-
return (await import("./save-
|
|
1998
|
+
return (await import("./save-DJijxFFK.mjs")).saveKnipBaseline(cwd, report, file);
|
|
1999
1999
|
}
|
|
2000
2000
|
//#endregion
|
|
2001
2001
|
//#region src/commands/env-cache/config.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.1
|
|
4
|
+
"version": "6.2.1",
|
|
5
5
|
"description": "Core engine and programmatic APIs for repoctl",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@commitlint/cli": "^21.2.
|
|
70
|
+
"@commitlint/cli": "^21.2.4",
|
|
71
71
|
"eslint": "^9.0.0 || ^10.0.0",
|
|
72
72
|
"stylelint": "^17.16.0",
|
|
73
73
|
"typescript": "^5.0.0 || ^6.0.0"
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@arethetypeswrong/core": "0.18.5",
|
|
91
91
|
"@babel/parser": "^7.29.9",
|
|
92
|
-
"@icebreakers/commitlint-config": "4.1.
|
|
93
|
-
"@icebreakers/eslint-config": "8.0.
|
|
94
|
-
"@icebreakers/monorepo-templates": "3.1.
|
|
92
|
+
"@icebreakers/commitlint-config": "4.1.5",
|
|
93
|
+
"@icebreakers/eslint-config": "8.0.12",
|
|
94
|
+
"@icebreakers/monorepo-templates": "3.1.2",
|
|
95
95
|
"@icebreakers/stylelint-config": "5.1.5",
|
|
96
96
|
"@npmcli/config": "10.14.0",
|
|
97
97
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
@@ -123,7 +123,8 @@
|
|
|
123
123
|
"tinyglobby": "^0.2.17",
|
|
124
124
|
"validate-npm-package-name": "^7.0.2",
|
|
125
125
|
"vitest": "^5.0.5",
|
|
126
|
-
"yaml": "^2.9.1"
|
|
126
|
+
"yaml": "^2.9.1",
|
|
127
|
+
"yauzl": "3.4.0"
|
|
127
128
|
},
|
|
128
129
|
"devDependencies": {
|
|
129
130
|
"@microsoft/api-extractor": "7.59.4",
|
|
@@ -134,9 +135,10 @@
|
|
|
134
135
|
"@types/pacote": "^11.1.8",
|
|
135
136
|
"@types/semver": "^7.8.0",
|
|
136
137
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
138
|
+
"@types/yauzl": "3.4.0",
|
|
137
139
|
"ci-info": "^4.4.0",
|
|
138
140
|
"fdir": "^6.5.0",
|
|
139
|
-
"knip": "6.
|
|
141
|
+
"knip": "6.42.0"
|
|
140
142
|
},
|
|
141
143
|
"publishConfig": {
|
|
142
144
|
"access": "public",
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: __WORKFLOW_NAME__
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
pullRequest:
|
|
7
|
+
description: Same-repository pull request number
|
|
8
|
+
required: true
|
|
9
|
+
type: number
|
|
10
|
+
|
|
11
|
+
permissions: {}
|
|
12
|
+
|
|
13
|
+
defaults:
|
|
14
|
+
run:
|
|
15
|
+
shell: bash
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: repoctl-auto-changeset-${{ inputs.pullRequest }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
21
|
+
env:
|
|
22
|
+
REPOCTL_POLICY_PATH: __POLICY_PATH__
|
|
23
|
+
REPOCTL_WORKFLOW_PATH: __WORKFLOW_PATH__
|
|
24
|
+
REPOCTL_ENVIRONMENT: __ENVIRONMENT__
|
|
25
|
+
REPOCTL_PLAN_JOB: __PLAN_JOB_NAME__
|
|
26
|
+
REPOCTL_APPLY_JOB: __APPLY_JOB_NAME__
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
plan:
|
|
30
|
+
name: __PLAN_JOB_NAME__
|
|
31
|
+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
timeout-minutes: 10
|
|
34
|
+
permissions:
|
|
35
|
+
contents: read
|
|
36
|
+
pull-requests: read
|
|
37
|
+
outputs:
|
|
38
|
+
artifact-id: ${{ steps.upload.outputs.artifact-id }}
|
|
39
|
+
changed: ${{ steps.plan.outputs.changed }}
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
42
|
+
with:
|
|
43
|
+
node-version: 24.22.1
|
|
44
|
+
- name: Install trusted repoctl
|
|
45
|
+
working-directory: ${{ runner.temp }}
|
|
46
|
+
run: npm install --prefix "$RUNNER_TEMP/repoctl-tools" --ignore-scripts --no-audit --no-fund --package-lock=false repoctl@__VERSION__
|
|
47
|
+
- id: plan
|
|
48
|
+
name: Freeze proposal from GitHub metadata
|
|
49
|
+
env:
|
|
50
|
+
GH_TOKEN: ${{ github.token }}
|
|
51
|
+
PR_NUMBER: ${{ inputs.pullRequest }}
|
|
52
|
+
working-directory: ${{ runner.temp }}
|
|
53
|
+
run: |
|
|
54
|
+
GITHUB_TOKEN="$GH_TOKEN" "$RUNNER_TEMP/repoctl-tools/node_modules/.bin/repoctl" release auto-changeset --repository "$GITHUB_REPOSITORY" --pr "$PR_NUMBER" --policy-path "$REPOCTL_POLICY_PATH" --out "$RUNNER_TEMP/auto-changeset-plan.json"
|
|
55
|
+
echo "changed=$(jq 'has("change")' "$RUNNER_TEMP/auto-changeset-plan.json")" >> "$GITHUB_OUTPUT"
|
|
56
|
+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
57
|
+
id: upload
|
|
58
|
+
with:
|
|
59
|
+
name: auto-changeset-plan-${{ github.run_id }}-${{ github.run_attempt }}
|
|
60
|
+
path: ${{ runner.temp }}/auto-changeset-plan.json
|
|
61
|
+
if-no-files-found: error
|
|
62
|
+
retention-days: 1
|
|
63
|
+
|
|
64
|
+
apply:
|
|
65
|
+
name: __APPLY_JOB_NAME__
|
|
66
|
+
needs: plan
|
|
67
|
+
if: needs.plan.outputs.changed == 'true'
|
|
68
|
+
environment: __ENVIRONMENT__
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
timeout-minutes: 10
|
|
71
|
+
permissions:
|
|
72
|
+
contents: write
|
|
73
|
+
pull-requests: read
|
|
74
|
+
actions: read
|
|
75
|
+
steps:
|
|
76
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
77
|
+
with:
|
|
78
|
+
node-version: 24.22.1
|
|
79
|
+
- name: Install trusted repoctl
|
|
80
|
+
working-directory: ${{ runner.temp }}
|
|
81
|
+
run: npm install --prefix "$RUNNER_TEMP/repoctl-tools" --ignore-scripts --no-audit --no-fund --package-lock=false repoctl@__VERSION__
|
|
82
|
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
83
|
+
with:
|
|
84
|
+
artifact-ids: ${{ needs.plan.outputs.artifact-id }}
|
|
85
|
+
path: ${{ runner.temp }}/auto-changeset-plan
|
|
86
|
+
merge-multiple: true
|
|
87
|
+
- name: Recheck approval and append the changeset commit
|
|
88
|
+
env:
|
|
89
|
+
GH_TOKEN: ${{ github.token }}
|
|
90
|
+
PR_NUMBER: ${{ inputs.pullRequest }}
|
|
91
|
+
working-directory: ${{ runner.temp }}
|
|
92
|
+
run: |
|
|
93
|
+
GITHUB_TOKEN="$GH_TOKEN" "$RUNNER_TEMP/repoctl-tools/node_modules/.bin/repoctl" release auto-changeset --repository "$GITHUB_REPOSITORY" --pr "$PR_NUMBER" --policy-path "$REPOCTL_POLICY_PATH" --apply --expected "$RUNNER_TEMP/auto-changeset-plan/auto-changeset-plan.json" --environment "$REPOCTL_ENVIRONMENT" --workflow-path "$REPOCTL_WORKFLOW_PATH" --plan-job-name "$REPOCTL_PLAN_JOB" --apply-job-name "$REPOCTL_APPLY_JOB" --json
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
name: __BUILDER_WORKFLOW_NAME__
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
pr_number:
|
|
7
|
+
description: Same-repository PR to approve and build
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
defaults:
|
|
15
|
+
run:
|
|
16
|
+
shell: bash
|
|
17
|
+
|
|
18
|
+
env:
|
|
19
|
+
SNAPSHOT_BUILDER_WORKFLOW: __BUILDER_WORKFLOW_PATH__
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
freeze:
|
|
23
|
+
name: Freeze snapshot plan
|
|
24
|
+
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
|
25
|
+
environment: __ENVIRONMENT__
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
timeout-minutes: 10
|
|
28
|
+
permissions:
|
|
29
|
+
contents: read
|
|
30
|
+
actions: read
|
|
31
|
+
pull-requests: read
|
|
32
|
+
outputs:
|
|
33
|
+
merge_sha: ${{ steps.source.outputs.merge_sha }}
|
|
34
|
+
plan_artifact: ${{ steps.artifact.outputs.artifact-id }}
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
37
|
+
with:
|
|
38
|
+
node-version: 24.22.1
|
|
39
|
+
- name: Install the pinned trusted tool outside candidate code
|
|
40
|
+
working-directory: ${{ runner.temp }}
|
|
41
|
+
run: |
|
|
42
|
+
npm install --prefix "$RUNNER_TEMP/repoctl-tools" --ignore-scripts --no-audit --no-fund --package-lock=false repoctl@__VERSION__ pnpm@__PNPM_VERSION__
|
|
43
|
+
echo "$RUNNER_TEMP/repoctl-tools/node_modules/.bin" >> "$GITHUB_PATH"
|
|
44
|
+
- name: Freeze the approved PR revision
|
|
45
|
+
id: source
|
|
46
|
+
env:
|
|
47
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
48
|
+
PR_NUMBER: ${{ inputs.pr_number }}
|
|
49
|
+
working-directory: ${{ runner.temp }}
|
|
50
|
+
run: |
|
|
51
|
+
"$RUNNER_TEMP/repoctl-tools/node_modules/.bin/repo" release snapshot source --pr "$PR_NUMBER" --builder-workflow "$SNAPSHOT_BUILDER_WORKFLOW" --out "$RUNNER_TEMP/snapshot-source.json" --json
|
|
52
|
+
node --input-type=module <<'NODE'
|
|
53
|
+
import fs from 'node:fs';
|
|
54
|
+
const source = JSON.parse(fs.readFileSync(`${process.env.RUNNER_TEMP}/snapshot-source.json`, 'utf8'));
|
|
55
|
+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `merge_sha=${source.mergeSha}\n`);
|
|
56
|
+
NODE
|
|
57
|
+
- name: Read only the frozen candidate metadata
|
|
58
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
59
|
+
with:
|
|
60
|
+
ref: ${{ steps.source.outputs.merge_sha }}
|
|
61
|
+
path: candidate
|
|
62
|
+
fetch-depth: 0
|
|
63
|
+
persist-credentials: false
|
|
64
|
+
- name: Create the trusted package and dependency plan without candidate scripts
|
|
65
|
+
working-directory: ${{ github.workspace }}/candidate
|
|
66
|
+
run: |
|
|
67
|
+
"$RUNNER_TEMP/repoctl-tools/node_modules/.bin/repo" release snapshot freeze --source "$RUNNER_TEMP/snapshot-source.json" --out "$RUNNER_TEMP/snapshot-plan.json" --json
|
|
68
|
+
- name: Upload the frozen plan
|
|
69
|
+
id: artifact
|
|
70
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
71
|
+
with:
|
|
72
|
+
name: snapshot-plan-${{ github.run_id }}-${{ github.run_attempt }}
|
|
73
|
+
path: ${{ runner.temp }}/snapshot-plan.json
|
|
74
|
+
if-no-files-found: error
|
|
75
|
+
retention-days: 14
|
|
76
|
+
- name: Bind the immutable plan artifact in this trusted job log
|
|
77
|
+
env:
|
|
78
|
+
ARTIFACT_ID: ${{ steps.artifact.outputs.artifact-id }}
|
|
79
|
+
ARTIFACT_DIGEST: ${{ steps.artifact.outputs.artifact-digest }}
|
|
80
|
+
working-directory: ${{ runner.temp }}
|
|
81
|
+
run: |
|
|
82
|
+
"$RUNNER_TEMP/repoctl-tools/node_modules/.bin/repo" release snapshot seal --plan "$RUNNER_TEMP/snapshot-plan.json" --artifact-id "$ARTIFACT_ID" --artifact-digest "$ARTIFACT_DIGEST"
|
|
83
|
+
|
|
84
|
+
build:
|
|
85
|
+
name: Build snapshot packages
|
|
86
|
+
needs: freeze
|
|
87
|
+
runs-on: ubuntu-latest
|
|
88
|
+
timeout-minutes: 60
|
|
89
|
+
permissions:
|
|
90
|
+
contents: read
|
|
91
|
+
steps:
|
|
92
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
93
|
+
with:
|
|
94
|
+
node-version: 24.22.1
|
|
95
|
+
- name: Install the pinned preparation tool
|
|
96
|
+
working-directory: ${{ runner.temp }}
|
|
97
|
+
run: |
|
|
98
|
+
npm install --prefix "$RUNNER_TEMP/repoctl-tools" --ignore-scripts --no-audit --no-fund --package-lock=false repoctl@__VERSION__ pnpm@__PNPM_VERSION__
|
|
99
|
+
echo "$RUNNER_TEMP/repoctl-tools/node_modules/.bin" >> "$GITHUB_PATH"
|
|
100
|
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
101
|
+
with:
|
|
102
|
+
artifact-ids: ${{ needs.freeze.outputs.plan_artifact }}
|
|
103
|
+
path: ${{ runner.temp }}/snapshot-plan
|
|
104
|
+
merge-multiple: true
|
|
105
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
106
|
+
with:
|
|
107
|
+
ref: ${{ needs.freeze.outputs.merge_sha }}
|
|
108
|
+
path: candidate
|
|
109
|
+
fetch-depth: 0
|
|
110
|
+
persist-credentials: false
|
|
111
|
+
- name: Build and validate the frozen snapshot packages
|
|
112
|
+
id: prepare
|
|
113
|
+
working-directory: ${{ github.workspace }}/candidate
|
|
114
|
+
run: |
|
|
115
|
+
"$RUNNER_TEMP/repoctl-tools/node_modules/.bin/repo" release snapshot prepare --plan "$RUNNER_TEMP/snapshot-plan/snapshot-plan.json" --output "$RUNNER_TEMP/snapshot-artifacts" --out "$RUNNER_TEMP/snapshot-prepared.json" --json
|
|
116
|
+
node --input-type=module <<'NODE'
|
|
117
|
+
import fs from 'node:fs';
|
|
118
|
+
const prepared = JSON.parse(fs.readFileSync(`${process.env.RUNNER_TEMP}/snapshot-prepared.json`, 'utf8'));
|
|
119
|
+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `directory=${prepared.directory}\n`);
|
|
120
|
+
NODE
|
|
121
|
+
- name: Upload only the portable manifest and tarballs
|
|
122
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
123
|
+
with:
|
|
124
|
+
name: snapshot-build-${{ github.run_id }}-${{ github.run_attempt }}
|
|
125
|
+
path: ${{ steps.prepare.outputs.directory }}
|
|
126
|
+
if-no-files-found: error
|
|
127
|
+
retention-days: 14
|