@wtf/release-docs 8.2.1 → 8.2.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/README.md +56 -44
- package/api/@wtf/release-cargo/auth/functions/mask.md +1 -1
- package/api/@wtf/release-cargo/auth/functions/tokenVariableOf.md +1 -1
- package/api/@wtf/release-cargo/auth/functions/trustedPublishing.md +1 -1
- package/api/@wtf/release-cargo/auth/interfaces/HttpResponse.md +5 -5
- package/api/@wtf/release-cargo/auth/interfaces/TrustedPublishing.md +5 -5
- package/api/@wtf/release-cargo/auth/interfaces/TrustedPublishingOptions.md +6 -6
- package/api/@wtf/release-cargo/auth/type-aliases/HttpFetch.md +1 -1
- package/api/@wtf/release-cargo/auth/variables/CRATES_IO_API.md +1 -1
- package/api/@wtf/release-cargo/auth/variables/ID_TOKEN_VARIABLE.md +1 -1
- package/api/@wtf/release-cargo/auth/variables/USER_AGENT.md +1 -1
- package/api/@wtf/release-cargo/crates/functions/publishOrder.md +1 -1
- package/api/@wtf/release-cargo/crates/functions/publishable.md +1 -1
- package/api/@wtf/release-cargo/crates/functions/readWorkspace.md +1 -1
- package/api/@wtf/release-cargo/crates/functions/selectCrates.md +1 -1
- package/api/@wtf/release-cargo/crates/interfaces/Selection.md +5 -5
- package/api/@wtf/release-cargo/ecosystem/functions/packagesAt.md +1 -1
- package/api/@wtf/release-cargo/ecosystem/functions/packagesOfTree.md +1 -1
- package/api/@wtf/release-cargo/ecosystem/functions/packagesOfWorkspace.md +1 -1
- package/api/@wtf/release-cargo/ecosystem/functions/resolveRequirement.md +1 -1
- package/api/@wtf/release-cargo/ecosystem/functions/satisfiesRequirement.md +1 -1
- package/api/@wtf/release-cargo/ecosystem/functions/semverRange.md +1 -1
- package/api/@wtf/release-cargo/ecosystem/interfaces/CargoPackage.md +7 -7
- package/api/@wtf/release-cargo/ecosystem/variables/cargoEcosystem.md +1 -1
- package/api/@wtf/release-cargo/errors/classes/CargoError.md +5 -5
- package/api/@wtf/release-cargo/errors/type-aliases/CargoErrorCode.md +1 -1
- package/api/@wtf/release-cargo/errors/variables/CARGO_ERRORS.md +1 -1
- package/api/@wtf/release-cargo/interfaces/Crate.md +6 -6
- package/api/@wtf/release-cargo/interfaces/CrateDependency.md +6 -6
- package/api/@wtf/release-cargo/interfaces/Workspace.md +3 -3
- package/api/@wtf/release-cargo/publish/functions/publishCrates.md +1 -1
- package/api/@wtf/release-cargo/publish/interfaces/PublishCratesOptions.md +11 -11
- package/api/@wtf/release-cargo/publish/interfaces/PublishedCrate.md +5 -5
- package/api/@wtf/release-cargo/publish/type-aliases/CrateStatus.md +1 -1
- package/api/@wtf/release-cargo/publish/variables/RECHECK_WAITS.md +1 -1
- package/api/@wtf/release-cargo/registry/functions/crateUrl.md +1 -1
- package/api/@wtf/release-cargo/registry/functions/indexHasVersion.md +1 -1
- package/api/@wtf/release-cargo/registry/functions/indexPath.md +1 -1
- package/api/@wtf/release-cargo/registry/variables/CRATES_IO_INDEX.md +1 -1
- package/api/@wtf/release-cargo/stamp/functions/checkVersions.md +1 -1
- package/api/@wtf/release-cargo/stamp/functions/inheritsVersion.md +1 -1
- package/api/@wtf/release-cargo/stamp/functions/stampManifest.md +1 -1
- package/api/@wtf/release-cargo/stamp/functions/stampWorkspace.md +1 -1
- package/api/@wtf/release-cargo/stamp/interfaces/StampOptions.md +4 -4
- package/api/@wtf/release-cargo/stamp/interfaces/Stamped.md +3 -3
- package/api/@wtf/release-cargo/stamp/interfaces/StampedWorkspace.md +3 -3
- package/api/@wtf/release-cargo/type-aliases/DependencyKind.md +1 -1
- package/api/@wtf/release-go/ecosystem/functions/packagesOfModules.md +1 -1
- package/api/@wtf/release-go/ecosystem/functions/packagesOfRepo.md +1 -1
- package/api/@wtf/release-go/ecosystem/functions/resolveVersion.md +1 -1
- package/api/@wtf/release-go/ecosystem/functions/satisfiesVersion.md +1 -1
- package/api/@wtf/release-go/ecosystem/interfaces/GoPackage.md +7 -7
- package/api/@wtf/release-go/ecosystem/variables/goEcosystem.md +1 -1
- package/api/@wtf/release-go/errors/classes/GoError.md +5 -5
- package/api/@wtf/release-go/errors/type-aliases/GoErrorCode.md +1 -1
- package/api/@wtf/release-go/errors/variables/GO_ERRORS.md +1 -1
- package/api/@wtf/release-go/gomod/functions/entriesOf.md +1 -1
- package/api/@wtf/release-go/gomod/functions/linesOf.md +1 -1
- package/api/@wtf/release-go/gomod/functions/readGoMod.md +1 -1
- package/api/@wtf/release-go/gomod/functions/tokensOf.md +1 -1
- package/api/@wtf/release-go/gomod/interfaces/Entry.md +4 -4
- package/api/@wtf/release-go/gomod/interfaces/GoMod.md +4 -4
- package/api/@wtf/release-go/gomod/interfaces/GoReplace.md +6 -6
- package/api/@wtf/release-go/gomod/interfaces/GoRequire.md +4 -4
- package/api/@wtf/release-go/gomod/interfaces/Token.md +5 -5
- package/api/@wtf/release-go/interfaces/GoModule.md +6 -6
- package/api/@wtf/release-go/modules/functions/isFetchable.md +1 -1
- package/api/@wtf/release-go/modules/functions/isGoMod.md +1 -1
- package/api/@wtf/release-go/modules/functions/majorErrors.md +1 -1
- package/api/@wtf/release-go/modules/functions/majorOfPath.md +1 -1
- package/api/@wtf/release-go/modules/functions/modulesAt.md +1 -1
- package/api/@wtf/release-go/modules/functions/modulesOf.md +1 -1
- package/api/@wtf/release-go/modules/functions/readModules.md +1 -1
- package/api/@wtf/release-go/modules/functions/selectModules.md +1 -1
- package/api/@wtf/release-go/modules/interfaces/Selection.md +4 -4
- package/api/@wtf/release-go/stamp/functions/checkVersions.md +1 -1
- package/api/@wtf/release-go/stamp/functions/stampGoMod.md +1 -1
- package/api/@wtf/release-go/stamp/functions/stampModules.md +1 -1
- package/api/@wtf/release-go/stamp/interfaces/Stamped.md +3 -3
- package/api/@wtf/release-go/stamp/interfaces/StampedModules.md +3 -3
- package/api/@wtf/release-go/tags/functions/askProxy.md +1 -1
- package/api/@wtf/release-go/tags/functions/maskCredentials.md +1 -1
- package/api/@wtf/release-go/tags/functions/releaseCommit.md +1 -1
- package/api/@wtf/release-go/tags/functions/remoteTags.md +1 -1
- package/api/@wtf/release-go/tags/functions/tagModules.md +1 -1
- package/api/@wtf/release-go/tags/functions/tagOfModule.md +1 -1
- package/api/@wtf/release-go/tags/functions/tagPrefix.md +1 -1
- package/api/@wtf/release-go/tags/interfaces/TagModulesOptions.md +8 -8
- package/api/@wtf/release-go/tags/interfaces/TaggedModule.md +5 -5
- package/api/@wtf/release-go/tags/type-aliases/ModuleStatus.md +1 -1
- package/api/@wtf/release-go/tags/variables/RELEASE_AUTHOR.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/groupIdOf.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/installsOf.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/isPomFile.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/isRange.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/modulesOf.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/nameOf.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/publishOrder.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/readModules.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/readPoms.md +1 -1
- package/api/@wtf/release-maven/artifacts/functions/selectArtifacts.md +1 -1
- package/api/@wtf/release-maven/artifacts/interfaces/Selection.md +4 -4
- package/api/@wtf/release-maven/ecosystem/functions/compareVersions.md +1 -1
- package/api/@wtf/release-maven/ecosystem/functions/parseRange.md +1 -1
- package/api/@wtf/release-maven/ecosystem/functions/resolveVersion.md +1 -1
- package/api/@wtf/release-maven/ecosystem/functions/satisfiesVersion.md +1 -1
- package/api/@wtf/release-maven/ecosystem/interfaces/Bound.md +3 -3
- package/api/@wtf/release-maven/ecosystem/interfaces/Restriction.md +3 -3
- package/api/@wtf/release-maven/ecosystem/variables/mavenEcosystem.md +1 -1
- package/api/@wtf/release-maven/errors/classes/MavenError.md +5 -5
- package/api/@wtf/release-maven/errors/type-aliases/MavenErrorCode.md +1 -1
- package/api/@wtf/release-maven/errors/variables/MAVEN_ERRORS.md +1 -1
- package/api/@wtf/release-maven/interfaces/MavenModule.md +14 -14
- package/api/@wtf/release-maven/pom/functions/childOf.md +1 -1
- package/api/@wtf/release-maven/pom/functions/childrenOf.md +1 -1
- package/api/@wtf/release-maven/pom/functions/dependencyOf.md +1 -1
- package/api/@wtf/release-maven/pom/functions/escapeXml.md +1 -1
- package/api/@wtf/release-maven/pom/functions/parseXml.md +1 -1
- package/api/@wtf/release-maven/pom/functions/readPom.md +1 -1
- package/api/@wtf/release-maven/pom/functions/textAt.md +1 -1
- package/api/@wtf/release-maven/pom/interfaces/Pom.md +15 -15
- package/api/@wtf/release-maven/pom/interfaces/PomDependency.md +5 -5
- package/api/@wtf/release-maven/pom/interfaces/PomParent.md +4 -4
- package/api/@wtf/release-maven/pom/interfaces/PomPlugin.md +5 -5
- package/api/@wtf/release-maven/pom/interfaces/PomRepository.md +3 -3
- package/api/@wtf/release-maven/pom/interfaces/Span.md +3 -3
- package/api/@wtf/release-maven/pom/interfaces/XmlElement.md +7 -7
- package/api/@wtf/release-maven/pom/variables/PLUGIN_GROUP.md +1 -1
- package/api/@wtf/release-maven/publish/functions/deployModules.md +1 -1
- package/api/@wtf/release-maven/publish/interfaces/DeployModulesOptions.md +11 -11
- package/api/@wtf/release-maven/publish/interfaces/DeployedModule.md +4 -4
- package/api/@wtf/release-maven/publish/type-aliases/ModuleStatus.md +1 -1
- package/api/@wtf/release-maven/repository/functions/deployTargets.md +1 -1
- package/api/@wtf/release-maven/repository/functions/expandValues.md +1 -1
- package/api/@wtf/release-maven/repository/functions/hasPom.md +1 -1
- package/api/@wtf/release-maven/repository/functions/pomPath.md +1 -1
- package/api/@wtf/release-maven/repository/functions/pomUrl.md +1 -1
- package/api/@wtf/release-maven/repository/interfaces/Repository.md +3 -3
- package/api/@wtf/release-maven/repository/interfaces/ValuesOf.md +3 -3
- package/api/@wtf/release-maven/repository/variables/MAVEN_CENTRAL.md +1 -1
- package/api/@wtf/release-maven/stamp/functions/checkVersions.md +1 -1
- package/api/@wtf/release-maven/stamp/functions/stampModules.md +1 -1
- package/api/@wtf/release-maven/stamp/functions/stampPom.md +1 -1
- package/api/@wtf/release-maven/stamp/interfaces/PomStampOptions.md +5 -5
- package/api/@wtf/release-maven/stamp/interfaces/Stamped.md +3 -3
- package/api/@wtf/release-maven/stamp/interfaces/StampedModules.md +3 -3
- package/api/@wtf/release-npm/check/functions/checkPackages.md +1 -1
- package/api/@wtf/release-npm/check/functions/formatIssue.md +1 -1
- package/api/@wtf/release-npm/check/interfaces/CheckOptions.md +6 -6
- package/api/@wtf/release-npm/check/interfaces/Issue.md +5 -5
- package/api/@wtf/release-npm/check/type-aliases/CheckedPackage.md +1 -1
- package/api/@wtf/release-npm/check/type-aliases/IssueCode.md +1 -1
- package/api/@wtf/release-npm/ecosystem/variables/npmEcosystem.md +1 -1
- package/api/@wtf/release-npm/errors/type-aliases/NpmErrorCode.md +1 -1
- package/api/@wtf/release-npm/errors/variables/NPM_ERRORS.md +1 -1
- package/api/@wtf/release-npm/interfaces/Lookup.md +3 -3
- package/api/@wtf/release-npm/interfaces/PublishOptions.md +6 -6
- package/api/@wtf/release-npm/interfaces/PublishPackage.md +5 -5
- package/api/@wtf/release-npm/interfaces/PublishTrainOptions.md +13 -13
- package/api/@wtf/release-npm/interfaces/Publisher.md +7 -7
- package/api/@wtf/release-npm/interfaces/PublisherContext.md +7 -7
- package/api/@wtf/release-npm/manifests/functions/concreteRange.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/manifestsAt.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/packageOf.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/packagesOfManifests.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/readManifests.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/resolveSpecifier.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/runtimeDependenciesOf.md +1 -1
- package/api/@wtf/release-npm/manifests/functions/satisfiesRange.md +1 -1
- package/api/@wtf/release-npm/manifests/interfaces/Manifest.md +5 -5
- package/api/@wtf/release-npm/manifests/interfaces/NpmPackage.md +7 -7
- package/api/@wtf/release-npm/manifests/type-aliases/DependencyField.md +1 -1
- package/api/@wtf/release-npm/manifests/variables/DEPENDENCY_FIELDS.md +1 -1
- package/api/@wtf/release-npm/manifests/variables/FIELD_KINDS.md +1 -1
- package/api/@wtf/release-npm/manifests/variables/RUNTIME_FIELDS.md +1 -1
- package/api/@wtf/release-npm/prepare/functions/isTypeScriptSource.md +1 -1
- package/api/@wtf/release-npm/prepare/functions/prepareManifest.md +1 -1
- package/api/@wtf/release-npm/prepare/functions/stripSourceConditions.md +1 -1
- package/api/@wtf/release-npm/prepare/interfaces/PrepareOptions.md +5 -5
- package/api/@wtf/release-npm/prepare/interfaces/PreparedManifest.md +6 -6
- package/api/@wtf/release-npm/prepare/variables/SOURCE_CONDITIONS.md +1 -1
- package/api/@wtf/release-npm/publishers/functions/builtInPublisher.md +1 -1
- package/api/@wtf/release-npm/publishers/functions/isPublisher.md +1 -1
- package/api/@wtf/release-npm/publishers/variables/NPM_REGISTRY.md +1 -1
- package/api/@wtf/release-npm/publishers/variables/PUBLISHERS.md +1 -1
- package/api/@wtf/release-npm/publishers/variables/npmPublisher.md +1 -1
- package/api/@wtf/release-npm/publishers/variables/pnpmPublisher.md +1 -1
- package/api/@wtf/release-npm/release/functions/checkTrain.md +1 -1
- package/api/@wtf/release-npm/release/functions/distTagOf.md +1 -1
- package/api/@wtf/release-npm/release/functions/packTrain.md +1 -1
- package/api/@wtf/release-npm/release/functions/publishPacked.md +1 -1
- package/api/@wtf/release-npm/release/functions/publishTrain.md +1 -1
- package/api/@wtf/release-npm/release/functions/publishedOf.md +1 -1
- package/api/@wtf/release-npm/release/functions/publishedOfResolved.md +1 -1
- package/api/@wtf/release-npm/release/functions/releaseTrain.md +1 -1
- package/api/@wtf/release-npm/release/functions/resolveManifests.md +1 -1
- package/api/@wtf/release-npm/release/functions/tagTrain.md +1 -1
- package/api/@wtf/release-npm/release/interfaces/CheckRelease.md +16 -16
- package/api/@wtf/release-npm/release/interfaces/PackOptions.md +8 -8
- package/api/@wtf/release-npm/release/interfaces/PackedTrain.md +12 -12
- package/api/@wtf/release-npm/release/interfaces/PublishRun.md +11 -11
- package/api/@wtf/release-npm/release/interfaces/PublishedOf.md +4 -4
- package/api/@wtf/release-npm/release/interfaces/PublishedPackage.md +7 -7
- package/api/@wtf/release-npm/release/interfaces/PublishedTrain.md +5 -5
- package/api/@wtf/release-npm/release/interfaces/ResolveRelease.md +17 -17
- package/api/@wtf/release-npm/release/interfaces/ResolvedPackage.md +4 -4
- package/api/@wtf/release-npm/release/interfaces/ResolvedTrain.md +6 -6
- package/api/@wtf/release-npm/release/interfaces/TagRelease.md +14 -14
- package/api/@wtf/release-npm/release/type-aliases/LookedUpTrain.md +1 -1
- package/api/@wtf/release-npm/release/type-aliases/ReleaseRun.md +1 -1
- package/api/@wtf/release-npm/release/variables/ID_TOKENS.md +1 -1
- package/api/@wtf/release-npm/release/variables/RUNNER_ENVIRONMENTS.md +1 -1
- package/api/@wtf/release-npm/workspace/functions/pnpmWorkspaceGlobs.md +1 -1
- package/api/@wtf/release-npm/workspace/functions/publishableOf.md +1 -1
- package/api/@wtf/release-npm/workspace/functions/readWorkspace.md +1 -1
- package/api/@wtf/release-npm/workspace/functions/workspaceFolders.md +1 -1
- package/api/@wtf/release-npm/workspace/functions/workspaceGlobs.md +1 -1
- package/api/@wtf/release-npm/workspace/interfaces/WorkspaceGlobs.md +3 -3
- package/api/@wtf/release-npm/workspace/interfaces/WorkspaceOptions.md +2 -2
- package/api/@wtf/release-replace/errors/classes/ReplaceError.md +5 -5
- package/api/@wtf/release-replace/errors/type-aliases/ReplaceErrorCode.md +1 -1
- package/api/@wtf/release-replace/errors/variables/REPLACE_ERRORS.md +1 -1
- package/api/@wtf/release-replace/files/functions/filesMatcher.md +1 -1
- package/api/@wtf/release-replace/interfaces/ReplaceMatch.md +5 -5
- package/api/@wtf/release-replace/interfaces/ReplacementOf.md +5 -5
- package/api/@wtf/release-replace/replace/functions/regExpOf.md +1 -1
- package/api/@wtf/release-replace/replace/functions/replaceFiles.md +1 -1
- package/api/@wtf/release-replace/replace/functions/replaceText.md +1 -1
- package/api/@wtf/release-replace/replace/interfaces/ReplaceOptions.md +10 -10
- package/api/@wtf/release-replace/replace/interfaces/TextOptions.md +5 -5
- package/api/@wtf/release-replace/replace/type-aliases/To.md +1 -1
- package/api/@wtf/release-replace/templates/functions/mergeTemplates.md +1 -1
- package/api/@wtf/release-replace/templates/functions/resolveReplacement.md +1 -1
- package/api/@wtf/release-replace/templates/functions/resolveReplacements.md +1 -1
- package/api/@wtf/release-replace/type-aliases/Escape.md +1 -1
- package/api/@wtf/release-replace/type-aliases/ReplaceFunction.md +1 -1
- package/api/@wtf/release-replace/type-aliases/Replacement.md +1 -1
- package/api/@wtf/release-replace/type-aliases/ReplacementSpec.md +1 -1
- package/api/@wtf/release-replace/type-aliases/TemplateUse.md +1 -1
- package/api/@wtf/release-replace/type-aliases/Templates.md +1 -1
- package/api/@wtf/release-replace/values/functions/escapeValue.md +1 -1
- package/api/@wtf/release-replace/values/functions/textOf.md +1 -1
- package/api/@wtf/release-replace/values/functions/valueAt.md +1 -1
- package/api/@wtf/release-replace/values/variables/ESCAPES.md +1 -1
- package/api/@wtf/release-replace/values/variables/VALUE.md +1 -1
- package/api/@wtf/release-system/errors/classes/ReleaseError.md +5 -5
- package/api/@wtf/release-system/errors/functions/throwAll.md +1 -1
- package/api/@wtf/release-system/errors/type-aliases/ErrorClass.md +1 -1
- package/api/@wtf/release-system/errors/type-aliases/SystemErrorCode.md +1 -1
- package/api/@wtf/release-system/errors/variables/SYSTEM_ERRORS.md +1 -1
- package/api/@wtf/release-system/git/functions/commitsSince.md +1 -1
- package/api/@wtf/release-system/git/functions/filesOfCommits.md +1 -1
- package/api/@wtf/release-system/git/functions/git.md +1 -1
- package/api/@wtf/release-system/git/functions/gitOf.md +1 -1
- package/api/@wtf/release-system/git/functions/trackedFiles.md +1 -1
- package/api/@wtf/release-system/git/interfaces/GitContext.md +4 -4
- package/api/@wtf/release-system/git/interfaces/LogCommit.md +5 -5
- package/api/@wtf/release-system/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/release-system/node/functions/realPathOf.md +1 -1
- package/api/@wtf/release-system/node/functions/systemOf.md +1 -1
- package/api/@wtf/release-system/paths/functions/normalizePath.md +1 -1
- package/api/@wtf/release-system/paths/functions/pathMatcher.md +1 -1
- package/api/@wtf/release-system/paths/type-aliases/PathMatcher.md +1 -1
- package/api/@wtf/release-system/posix/functions/basenameOf.md +1 -1
- package/api/@wtf/release-system/posix/functions/dirnameOf.md +1 -1
- package/api/@wtf/release-system/posix/functions/joinPath.md +1 -1
- package/api/@wtf/release-system/posix/functions/relativePath.md +1 -1
- package/api/@wtf/release-system/posix/functions/resolvePath.md +1 -1
- package/api/@wtf/release-system/system/interfaces/DirEntry.md +3 -3
- package/api/@wtf/release-system/system/interfaces/ExecOptions.md +4 -4
- package/api/@wtf/release-system/system/interfaces/ExecResult.md +4 -4
- package/api/@wtf/release-system/system/interfaces/System.md +7 -7
- package/api/@wtf/release-system/system/interfaces/SystemFs.md +8 -8
- package/api/@wtf/release-system/system/type-aliases/Exec.md +1 -1
- package/api/@wtf/release-system/system/type-aliases/SystemInput.md +1 -1
- package/api/@wtf/release-system/validator/functions/allOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/anyObject.md +1 -1
- package/api/@wtf/release-system/validator/functions/anyOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/arrayOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/booleanOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/errorOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/errorsOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/exclusive.md +1 -1
- package/api/@wtf/release-system/validator/functions/issuesOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/objectOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/oneOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/orFunction.md +1 -1
- package/api/@wtf/release-system/validator/functions/pathText.md +1 -1
- package/api/@wtf/release-system/validator/functions/pluginEntriesOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/recordOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/refined.md +1 -1
- package/api/@wtf/release-system/validator/functions/stringOf.md +1 -1
- package/api/@wtf/release-system/validator/functions/tupleOf.md +1 -1
- package/api/@wtf/release-system/validator/interfaces/ArrayOptions.md +5 -5
- package/api/@wtf/release-system/validator/interfaces/IssueOptions.md +4 -4
- package/api/@wtf/release-system/validator/interfaces/ObjectOptions.md +5 -5
- package/api/@wtf/release-system/validator/interfaces/OptionIssue.md +4 -4
- package/api/@wtf/release-system/validator/interfaces/Property.md +4 -4
- package/api/@wtf/release-system/validator/interfaces/RecordOptions.md +6 -6
- package/api/@wtf/release-system/validator/interfaces/StringOptions.md +6 -6
- package/api/@wtf/release-system/validator/interfaces/Validator.md +4 -4
- package/api/@wtf/release-system/validator/type-aliases/JsonSchema.md +1 -1
- package/api/@wtf/release-system/validator/type-aliases/Path.md +1 -1
- package/api/@wtf/release-trains/cascade/functions/cascadeNotes.md +1 -1
- package/api/@wtf/release-trains/cascade/functions/cascadeText.md +1 -1
- package/api/@wtf/release-trains/cascade/functions/cascadeType.md +1 -1
- package/api/@wtf/release-trains/cascade/functions/cascadesOf.md +1 -1
- package/api/@wtf/release-trains/cascade/functions/higherType.md +1 -1
- package/api/@wtf/release-trains/cascade/interfaces/Cascade.md +11 -11
- package/api/@wtf/release-trains/cascade/interfaces/CascadeCheck.md +8 -8
- package/api/@wtf/release-trains/cascade/type-aliases/CascadeKind.md +1 -1
- package/api/@wtf/release-trains/cascade/type-aliases/ReleaseType.md +1 -1
- package/api/@wtf/release-trains/cascade/variables/RELEASE_TYPES.md +1 -1
- package/api/@wtf/release-trains/ecosystem/functions/isEcosystem.md +1 -1
- package/api/@wtf/release-trains/ecosystem/functions/loadEcosystems.md +1 -1
- package/api/@wtf/release-trains/ecosystem/functions/readPackages.md +1 -1
- package/api/@wtf/release-trains/ecosystem/interfaces/Dependency.md +4 -4
- package/api/@wtf/release-trains/ecosystem/interfaces/Ecosystem.md +5 -5
- package/api/@wtf/release-trains/ecosystem/interfaces/EcosystemContext.md +5 -5
- package/api/@wtf/release-trains/ecosystem/interfaces/EcosystemPackages.md +3 -3
- package/api/@wtf/release-trains/ecosystem/interfaces/Package.md +6 -6
- package/api/@wtf/release-trains/ecosystem/type-aliases/DependencyKind.md +1 -1
- package/api/@wtf/release-trains/ecosystem/type-aliases/ModuleLoader.md +1 -1
- package/api/@wtf/release-trains/ecosystem/variables/DEPENDENCY_KINDS.md +1 -1
- package/api/@wtf/release-trains/errors/classes/TrainsError.md +5 -5
- package/api/@wtf/release-trains/errors/type-aliases/TrainsErrorCode.md +1 -1
- package/api/@wtf/release-trains/errors/variables/TRAINS_ERRORS.md +1 -1
- package/api/@wtf/release-trains/generated/functions/filesIn.md +1 -1
- package/api/@wtf/release-trains/generated/functions/formatGenerated.md +1 -1
- package/api/@wtf/release-trains/generated/functions/listGenerated.md +1 -1
- package/api/@wtf/release-trains/generated/functions/parseGenerated.md +1 -1
- package/api/@wtf/release-trains/generated/functions/readGenerated.md +1 -1
- package/api/@wtf/release-trains/generated/functions/stageGenerated.md +1 -1
- package/api/@wtf/release-trains/generated/functions/stageGeneratedFolders.md +1 -1
- package/api/@wtf/release-trains/generated/functions/unlistedIn.md +1 -1
- package/api/@wtf/release-trains/generated/interfaces/GeneratedOptions.md +2 -2
- package/api/@wtf/release-trains/generated/interfaces/StageOptions.md +6 -6
- package/api/@wtf/release-trains/generated/variables/GENERATED.md +1 -1
- package/api/@wtf/release-trains/git/functions/tagOf.md +1 -1
- package/api/@wtf/release-trains/git/functions/tagsOf.md +1 -1
- package/api/@wtf/release-trains/git/functions/versionOfTag.md +1 -1
- package/api/@wtf/release-trains/git/interfaces/TrainTag.md +3 -3
- package/api/@wtf/release-trains/interfaces/Train.md +7 -7
- package/api/@wtf/release-trains/packages/functions/dependencyEdges.md +1 -1
- package/api/@wtf/release-trains/packages/functions/dependencyText.md +1 -1
- package/api/@wtf/release-trains/packages/functions/dependsOnErrors.md +1 -1
- package/api/@wtf/release-trains/packages/functions/normalizeDir.md +1 -1
- package/api/@wtf/release-trains/packages/functions/ownersOf.md +1 -1
- package/api/@wtf/release-trains/packages/functions/packagesOf.md +1 -1
- package/api/@wtf/release-trains/packages/functions/publishOrder.md +1 -1
- package/api/@wtf/release-trains/packages/functions/releasedVersions.md +1 -1
- package/api/@wtf/release-trains/packages/functions/trainDependencies.md +1 -1
- package/api/@wtf/release-trains/packages/functions/trainOrder.md +1 -1
- package/api/@wtf/release-trains/packages/functions/unsatisfiedErrors.md +1 -1
- package/api/@wtf/release-trains/packages/interfaces/DependencyEdge.md +6 -6
- package/api/@wtf/release-trains/packages/interfaces/OrderFault.md +4 -4
- package/api/@wtf/release-trains/packages/interfaces/OrderPins.md +3 -3
- package/api/@wtf/release-trains/packages/interfaces/PublishOrder.md +3 -3
- package/api/@wtf/release-trains/packages/interfaces/TrainDependency.md +3 -3
- package/api/@wtf/release-trains/packages/interfaces/VersionsRelease.md +7 -7
- package/api/@wtf/release-trains/paths/functions/filterCommits.md +1 -1
- package/api/@wtf/release-trains/paths/functions/gitFilesOf.md +1 -1
- package/api/@wtf/release-trains/paths/functions/overlapError.md +1 -1
- package/api/@wtf/release-trains/paths/functions/trainOfPath.md +1 -1
- package/api/@wtf/release-trains/paths/functions/trainsOfCommit.md +1 -1
- package/api/@wtf/release-trains/paths/functions/trainsOfPath.md +1 -1
- package/api/@wtf/release-trains/paths/type-aliases/FilesOf.md +1 -1
- package/api/@wtf/release-trains/schema/interfaces/ConfigPart.md +6 -6
- package/api/@wtf/release-trains/schema/interfaces/RootOptions.md +7 -7
- package/api/@wtf/release-trains/schema/type-aliases/DependencyRule.md +1 -1
- package/api/@wtf/release-trains/schema/variables/DEPENDENCY_RULES.md +1 -1
- package/api/@wtf/release-trains/schema/variables/TAG_FORMAT_PATTERN.md +1 -1
- package/api/@wtf/release-trains/schema/variables/TRAIN_NAME_PATTERN.md +1 -1
- package/api/@wtf/release-trains/schema/variables/configSchema.md +1 -1
- package/api/@wtf/release-trains/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/release-trains/schema/variables/rootOptionsSchema.md +1 -1
- package/api/@wtf/release-trains/schema/variables/trainSchema.md +1 -1
- package/api/@wtf/release-trains/schema/variables/trainsSchema.md +1 -1
- package/api/@wtf/release-trains/trains/functions/changelogOf.md +1 -1
- package/api/@wtf/release-trains/trains/functions/matchersOf.md +1 -1
- package/api/@wtf/release-trains/trains/functions/overlapErrors.md +1 -1
- package/api/@wtf/release-trains/trains/functions/selectTrain.md +1 -1
- package/api/@wtf/release-trains/trains/functions/tagFormatOf.md +1 -1
- package/api/@wtf/release-trains/trains/functions/trainHeadedNotes.md +1 -1
- package/api/@wtf/release-trains/trains/functions/trainOfRun.md +1 -1
- package/api/@wtf/release-trains/trains/functions/trainOfTag.md +1 -1
- package/api/@wtf/release-trains/trains/functions/trainsErrors.md +1 -1
- package/api/@wtf/release-trains/trains/functions/trainsOfOptions.md +1 -1
- package/api/@wtf/release-trains/trains/variables/TRAIN_VARIABLE.md +1 -1
- package/api/@wtf/release-trains/trains/variables/VERSION.md +1 -1
- package/api/@wtf/release-trains/type-aliases/BranchSpec.md +1 -1
- package/api/@wtf/release-trains/type-aliases/Trains.md +1 -1
- package/api/@wtf/release-trains/verify/functions/unreleasedDependencies.md +1 -1
- package/api/@wtf/release-trains/verify/functions/verifyTrain.md +1 -1
- package/api/@wtf/release-trains/verify/interfaces/UnreleasedDependencies.md +10 -10
- package/api/@wtf/release-trains/verify/interfaces/VerifiedTrain.md +5 -5
- package/api/@wtf/release-trains/verify/interfaces/VerifyRelease.md +8 -8
- package/api/@wtf/release-validate/errors/classes/ValidateError.md +5 -5
- package/api/@wtf/release-validate/errors/type-aliases/ValidateErrorCode.md +1 -1
- package/api/@wtf/release-validate/errors/variables/VALIDATE_ERRORS.md +1 -1
- package/api/@wtf/release-validate/interfaces/ConfigIssue.md +4 -4
- package/api/@wtf/release-validate/json-schema/functions/fromJsonSchema.md +1 -1
- package/api/@wtf/release-validate/json-schema/functions/pathOfPointer.md +1 -1
- package/api/@wtf/release-validate/json-schema/interfaces/JsonSchemaError.md +3 -3
- package/api/@wtf/release-validate/json-schema/interfaces/JsonSchemaValidator.md +3 -3
- package/api/@wtf/release-validate/validate/functions/configErrors.md +1 -1
- package/api/@wtf/release-validate/validate/functions/isStandardSchema.md +1 -1
- package/api/@wtf/release-validate/validate/functions/pathText.md +1 -1
- package/api/@wtf/release-validate/validate/functions/validateConfig.md +1 -1
- package/api/@wtf/semantic-release-cargo/functions/indexLookup.md +1 -1
- package/api/@wtf/semantic-release-cargo/functions/prepare.md +1 -1
- package/api/@wtf/semantic-release-cargo/functions/publish.md +1 -1
- package/api/@wtf/semantic-release-cargo/functions/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-cargo/interfaces/CargoPluginOptions.md +12 -12
- package/api/@wtf/semantic-release-cargo/interfaces/CargoRelease.md +3 -3
- package/api/@wtf/semantic-release-cargo/schema/type-aliases/CargoOptions.md +1 -1
- package/api/@wtf/semantic-release-cargo/schema/variables/cargoOptionsSchema.md +1 -1
- package/api/@wtf/semantic-release-cargo/schema/variables/cargoSchema.md +1 -1
- package/api/@wtf/semantic-release-cargo/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-cargo/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-cargo/variables/default.md +1 -1
- package/api/@wtf/semantic-release-go/functions/prepare.md +1 -1
- package/api/@wtf/semantic-release-go/functions/publish.md +1 -1
- package/api/@wtf/semantic-release-go/functions/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-go/functions/verifyRelease.md +1 -1
- package/api/@wtf/semantic-release-go/interfaces/GoPluginOptions.md +8 -8
- package/api/@wtf/semantic-release-go/interfaces/GoRelease.md +3 -3
- package/api/@wtf/semantic-release-go/schema/type-aliases/GoOptions.md +1 -1
- package/api/@wtf/semantic-release-go/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-go/schema/variables/goOptionsSchema.md +1 -1
- package/api/@wtf/semantic-release-go/schema/variables/goSchema.md +1 -1
- package/api/@wtf/semantic-release-go/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-go/variables/default.md +1 -1
- package/api/@wtf/semantic-release-maven/functions/pomLookup.md +1 -1
- package/api/@wtf/semantic-release-maven/functions/prepare.md +1 -1
- package/api/@wtf/semantic-release-maven/functions/publish.md +1 -1
- package/api/@wtf/semantic-release-maven/functions/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-maven/interfaces/LookupAuth.md +3 -3
- package/api/@wtf/semantic-release-maven/interfaces/MavenPluginOptions.md +12 -12
- package/api/@wtf/semantic-release-maven/interfaces/MavenRelease.md +2 -2
- package/api/@wtf/semantic-release-maven/schema/type-aliases/MavenOptions.md +1 -1
- package/api/@wtf/semantic-release-maven/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-maven/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-maven/schema/variables/mavenOptionsSchema.md +1 -1
- package/api/@wtf/semantic-release-maven/schema/variables/mavenSchema.md +1 -1
- package/api/@wtf/semantic-release-maven/variables/default.md +1 -1
- package/api/@wtf/semantic-release-npm/functions/addChannel.md +1 -1
- package/api/@wtf/semantic-release-npm/functions/fail.md +1 -1
- package/api/@wtf/semantic-release-npm/functions/loadPublisher.md +1 -1
- package/api/@wtf/semantic-release-npm/functions/prepare.md +1 -1
- package/api/@wtf/semantic-release-npm/functions/publish.md +1 -1
- package/api/@wtf/semantic-release-npm/functions/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-npm/interfaces/PublishPluginOptions.md +18 -18
- package/api/@wtf/semantic-release-npm/interfaces/PublishedRelease.md +4 -4
- package/api/@wtf/semantic-release-npm/interfaces/SmokeOption.md +2 -2
- package/api/@wtf/semantic-release-npm/schema/type-aliases/PublishOptions.md +1 -1
- package/api/@wtf/semantic-release-npm/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-npm/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-npm/schema/variables/publishOptionsSchema.md +1 -1
- package/api/@wtf/semantic-release-npm/schema/variables/publishSchema.md +1 -1
- package/api/@wtf/semantic-release-npm/type-aliases/PublisherSpec.md +1 -1
- package/api/@wtf/semantic-release-npm/variables/default.md +1 -1
- package/api/@wtf/semantic-release-replace/functions/functionOf.md +1 -1
- package/api/@wtf/semantic-release-replace/functions/prepare.md +1 -1
- package/api/@wtf/semantic-release-replace/functions/templatesOf.md +1 -1
- package/api/@wtf/semantic-release-replace/functions/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-replace/interfaces/ReplacePluginOptions.md +5 -5
- package/api/@wtf/semantic-release-replace/schema/interfaces/ModuleExport.md +3 -3
- package/api/@wtf/semantic-release-replace/schema/interfaces/ReplaceOptions.md +4 -4
- package/api/@wtf/semantic-release-replace/schema/interfaces/RootTemplates.md +2 -2
- package/api/@wtf/semantic-release-replace/schema/type-aliases/PluginReplacement.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/type-aliases/PluginReplacementSpec.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/type-aliases/PluginTemplates.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/type-aliases/PluginTo.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/type-aliases/TemplateSet.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/type-aliases/TemplatesOption.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/exportedSetSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/replaceOptionsSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/replacementSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/rootTemplatesSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/templateSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/schema/variables/templatesSchema.md +1 -1
- package/api/@wtf/semantic-release-replace/variables/default.md +1 -1
- package/api/@wtf/semantic-release-trains/config/functions/skipPlugins.md +1 -1
- package/api/@wtf/semantic-release-trains/config/functions/stepId.md +1 -1
- package/api/@wtf/semantic-release-trains/config/functions/trainAssets.md +1 -1
- package/api/@wtf/semantic-release-trains/config/functions/trainChangelog.md +1 -1
- package/api/@wtf/semantic-release-trains/config/functions/trainOfTag.md +1 -1
- package/api/@wtf/semantic-release-trains/config/functions/trainTagFormat.md +1 -1
- package/api/@wtf/semantic-release-trains/config/interfaces/AssetsOptions.md +4 -4
- package/api/@wtf/semantic-release-trains/config/interfaces/SkipOptions.md +3 -3
- package/api/@wtf/semantic-release-trains/config/variables/BRANCHES.md +1 -1
- package/api/@wtf/semantic-release-trains/config/variables/BREAKING.md +1 -1
- package/api/@wtf/semantic-release-trains/config/variables/TITLE.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/functions/skipRuleOf.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/functions/skips.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/functions/trainOptionsOf.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/interfaces/SkipContext.md +5 -5
- package/api/@wtf/semantic-release-trains/defaults/type-aliases/SkipCheck.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/type-aliases/TrainOptions.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/variables/SKIP_RULES.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/variables/TRAIN_OPTIONS.md +1 -1
- package/api/@wtf/semantic-release-trains/defaults/variables/TRAIN_SKIP.md +1 -1
- package/api/@wtf/semantic-release-trains/errors/type-aliases/PluginErrorCode.md +1 -1
- package/api/@wtf/semantic-release-trains/errors/variables/PLUGIN_ERRORS.md +1 -1
- package/api/@wtf/semantic-release-trains/info/functions/decideTrain.md +1 -1
- package/api/@wtf/semantic-release-trains/info/functions/dotenvOf.md +1 -1
- package/api/@wtf/semantic-release-trains/info/functions/infoOf.md +1 -1
- package/api/@wtf/semantic-release-trains/info/interfaces/DecideRun.md +4 -4
- package/api/@wtf/semantic-release-trains/info/interfaces/InfoRun.md +8 -8
- package/api/@wtf/semantic-release-trains/info/interfaces/TrainDecision.md +5 -5
- package/api/@wtf/semantic-release-trains/info/interfaces/TrainInfo.md +5 -5
- package/api/@wtf/semantic-release-trains/interfaces/TrainsEntryOptions.md +5 -5
- package/api/@wtf/semantic-release-trains/interfaces/TrainsOptions.md +7 -7
- package/api/@wtf/semantic-release-trains/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-trains/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-trains/schema/variables/pluginSpecSchema.md +1 -1
- package/api/@wtf/semantic-release-trains/schema/variables/skipRuleSchema.md +1 -1
- package/api/@wtf/semantic-release-trains/schema/variables/trainsEntrySchema.md +1 -1
- package/api/@wtf/semantic-release-trains/schema/variables/trainsPluginSchema.md +1 -1
- package/api/@wtf/semantic-release-trains/type-aliases/PluginSpec.md +1 -1
- package/api/@wtf/semantic-release-trains/type-aliases/TrainsPluginOptions.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/addChannel.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/analyzeCommits.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/default.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/fail.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/generateNotes.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/prepare.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/publish.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/success.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-trains/variables/verifyRelease.md +1 -1
- package/api/@wtf/semantic-release-validate/functions/configOf.md +1 -1
- package/api/@wtf/semantic-release-validate/functions/loadSchema.md +1 -1
- package/api/@wtf/semantic-release-validate/functions/verifyConditions.md +1 -1
- package/api/@wtf/semantic-release-validate/interfaces/ValidatePluginOptions.md +2 -2
- package/api/@wtf/semantic-release-validate/schema/interfaces/Validator.md +2 -2
- package/api/@wtf/semantic-release-validate/schema/variables/configSchema.md +1 -1
- package/api/@wtf/semantic-release-validate/schema/variables/jsonSchema.md +1 -1
- package/api/@wtf/semantic-release-validate/schema/variables/validateOptionsSchema.md +1 -1
- package/api/@wtf/semantic-release-validate/variables/default.md +1 -1
- package/guides/changelogs.md +39 -28
- package/guides/ci-recipes.md +393 -271
- package/guides/configuring-trains.md +291 -203
- package/guides/dependency-rules.md +171 -113
- package/guides/ecosystems.md +222 -156
- package/guides/getting-started.md +135 -69
- package/guides/publishing-crates.md +208 -143
- package/guides/publishing-go-modules.md +170 -110
- package/guides/publishing-maven.md +197 -123
- package/guides/publishing.md +278 -191
- package/guides/system.md +50 -34
- package/guides/troubleshooting.md +358 -92
- package/guides/validating-a-config.md +81 -56
- package/package.json +1 -1
package/guides/system.md
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
# The system
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
Read this page when you want to run the libraries outside semantic-release, from a CLI of your own,
|
|
4
|
+
or in tests. You can also use it to change how the plugins run processes.
|
|
5
|
+
|
|
6
|
+
Every function of the libraries, such as `@wtf/release-trains`, `@wtf/release-npm` and
|
|
7
|
+
`@wtf/release-replace`, reaches the outside world through a `System`. The `System` type comes from
|
|
8
|
+
`@wtf/release-system`, the base that the other libraries build on. A function requires a system
|
|
9
|
+
from its caller and never makes one itself.
|
|
10
|
+
|
|
11
|
+
The system provides files, processes, the environment, the working folder, a folder for temporary
|
|
12
|
+
files, and the clock. None of the library modules names Node. Each caller passes the system that
|
|
13
|
+
fits it:
|
|
14
|
+
|
|
15
|
+
- A semantic-release plugin passes Node's system.
|
|
16
|
+
- A CLI adapts its own files and processes to the interface, and passes that.
|
|
17
|
+
- A test passes a system in memory.
|
|
9
18
|
|
|
10
19
|
```ts
|
|
11
20
|
import type { System } from '@wtf/release-system/system'
|
|
@@ -14,24 +23,27 @@ import type { System } from '@wtf/release-system/system'
|
|
|
14
23
|
export type Members = keyof System // 'fs' | 'exec' | 'env' | 'cwd' | 'tmpdir' | 'now'
|
|
15
24
|
```
|
|
16
25
|
|
|
17
|
-
| Member | What it is
|
|
18
|
-
| -------- |
|
|
19
|
-
| `fs` | `readFile`, `writeFile`, `readdir`, `exists`, `mkdir` and `rm`
|
|
20
|
-
| `exec` | `exec(command, args, { cwd, env, input })`, which
|
|
21
|
-
| `env` | The environment that a process gets
|
|
22
|
-
| `cwd` | The working folder
|
|
23
|
-
| `tmpdir` | A folder
|
|
24
|
-
| `now` | The time, which dates a changelog
|
|
26
|
+
| Member | What it is |
|
|
27
|
+
| -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
28
|
+
| `fs` | `readFile`, `writeFile`, `readdir`, `exists`, `mkdir` and `rm` for text, and `copy` byte for byte. Every path is absolute. |
|
|
29
|
+
| `exec` | `exec(command, args, { cwd, env, input })`, which returns `{ stdout, stderr, code }`. It uses the system's `cwd` and `env` by default. |
|
|
30
|
+
| `env` | The environment that a process gets. |
|
|
31
|
+
| `cwd` | The working folder. |
|
|
32
|
+
| `tmpdir` | A folder for temporary files, outside the repo. A release copies and packs its packages there. |
|
|
33
|
+
| `now` | The current time, which dates a changelog. |
|
|
25
34
|
|
|
26
|
-
A non-zero exit code is not a failure of `exec` itself
|
|
27
|
-
the command cannot start.
|
|
28
|
-
system.
|
|
35
|
+
A non-zero exit code is not a failure of `exec` itself, and the caller decides what it means.
|
|
36
|
+
`exec` rejects only when the command cannot start.
|
|
29
37
|
|
|
30
|
-
|
|
38
|
+
Paths are POSIX paths. `@wtf/release-system/posix` joins them, without needing a system.
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
## Use Node's system
|
|
41
|
+
|
|
42
|
+
`nodeSystem` from `@wtf/release-system/node` is Node's system. It uses `node:fs/promises`,
|
|
43
|
+
`node:child_process`, `process.env`, `process.cwd()`, `os.tmpdir()` and `new Date()`.
|
|
44
|
+
|
|
45
|
+
It is the only library module that names Node. Only a caller that runs on Node imports it, such as
|
|
46
|
+
a plugin, a build script or a test.
|
|
35
47
|
|
|
36
48
|
```ts
|
|
37
49
|
import { nodeSystem } from '@wtf/release-system/node'
|
|
@@ -41,10 +53,10 @@ const system = nodeSystem()
|
|
|
41
53
|
export const packages = await readWorkspace(system.cwd, { system })
|
|
42
54
|
```
|
|
43
55
|
|
|
44
|
-
##
|
|
56
|
+
## Write a system of your own
|
|
45
57
|
|
|
46
58
|
A CLI with its own files and processes adapts them to the interface, and passes the result to each
|
|
47
|
-
function:
|
|
59
|
+
function. This example logs each process before it runs:
|
|
48
60
|
|
|
49
61
|
```ts
|
|
50
62
|
import npm from '@wtf/release-npm'
|
|
@@ -72,13 +84,17 @@ export function check(system: System) {
|
|
|
72
84
|
}
|
|
73
85
|
```
|
|
74
86
|
|
|
75
|
-
##
|
|
87
|
+
## Change the system that the plugins use
|
|
88
|
+
|
|
89
|
+
Each plugin makes Node's system for the run. It builds the system from the folder and the
|
|
90
|
+
environment that semantic-release gives each step, `cwd` and `env`, which the plugin requires. It
|
|
91
|
+
passes that system to every call into its library, so each process runs in that folder and with
|
|
92
|
+
that environment.
|
|
76
93
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
by member:
|
|
94
|
+
To replace members of that system, set the plugin's `system` option, or a `system` option at the
|
|
95
|
+
root of the config. `systemOf` from `@wtf/release-system/node` merges it over Node's system. It
|
|
96
|
+
merges `fs` member by member. This example stops every process of the release from asking for a
|
|
97
|
+
password:
|
|
82
98
|
|
|
83
99
|
```js train=trains
|
|
84
100
|
// release.config.mjs
|
|
@@ -110,13 +126,13 @@ export default {
|
|
|
110
126
|
}
|
|
111
127
|
```
|
|
112
128
|
|
|
113
|
-
semantic-release copies the config for each plugin.
|
|
114
|
-
system in a `release.config.mjs` reaches each plugin. A config written in JSON
|
|
115
|
-
plugins then run on Node's system.
|
|
129
|
+
semantic-release copies the config for each plugin. The copy keeps the functions of an object, so
|
|
130
|
+
a system in a `release.config.mjs` reaches each plugin. A config written in JSON cannot hold a
|
|
131
|
+
system, so the plugins then run on Node's system.
|
|
116
132
|
|
|
117
|
-
##
|
|
133
|
+
## Use a system in tests
|
|
118
134
|
|
|
119
|
-
A system
|
|
135
|
+
A system with files in memory and scripted processes runs the libraries with no disk and no git:
|
|
120
136
|
|
|
121
137
|
```ts
|
|
122
138
|
import type { System } from '@wtf/release-system/system'
|
|
@@ -1,52 +1,363 @@
|
|
|
1
1
|
# Troubleshooting
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
3
|
+
Find your problem by what you see, under [Symptoms](#symptoms), or by the code that the run prints,
|
|
4
|
+
under [Error codes](#error-codes). Each entry gives the cause, then the fix.
|
|
5
|
+
|
|
6
|
+
## Symptoms
|
|
7
|
+
|
|
8
|
+
### No release, but there are commits
|
|
9
|
+
|
|
10
|
+
Check these causes in turn:
|
|
11
|
+
|
|
12
|
+
- **The commits do not change the train's files.** The run logs how many commits since the last
|
|
13
|
+
release change the train's files. A commit of a file at the root, such as the lockfile, counts
|
|
14
|
+
only for the trains that list the file in `shared`. It also counts only when it changes no
|
|
15
|
+
train's own files. When it changes another train's files too, it counts for that train alone. See
|
|
16
|
+
[Which commits count](configuring-trains.md#which-commits-count).
|
|
17
|
+
- **The commits do not make a release.** The commit analyzer decides, with its preset. With the
|
|
18
|
+
default rules, a `docs:` or `chore:` commit makes no release.
|
|
19
|
+
- **A `!` is not read.** A tool that reads the commits with other parser options can read `feat!:`
|
|
20
|
+
as a minor release, or as no release. Give every breaking commit a `BREAKING CHANGE:` footer. See
|
|
21
|
+
[the caveat](configuring-trains.md#a-preset-and-type).
|
|
22
|
+
- **A shallow clone.** A clone of one commit has no history and none of the trains' tags. Clone all
|
|
23
|
+
of the history: `GIT_DEPTH: 0` on GitLab, `fetch-depth: 0` on GitHub.
|
|
24
|
+
|
|
25
|
+
### A train releases with no commits of its own
|
|
26
|
+
|
|
27
|
+
**Cause:** A dependency train released a version outside a range that the train's last release
|
|
28
|
+
published with `workspace:*`, `workspace:^` or `workspace:~`. For example, a peer dependency got a
|
|
29
|
+
major release, or a dependency got a patch. The run logs each such release, and the notes list them
|
|
30
|
+
in a `### Dependencies` section.
|
|
31
|
+
|
|
32
|
+
**Fix:** This release is a cascade, and it is on by default. To turn it off, set `cascade: false` at
|
|
33
|
+
the root of the config. See
|
|
34
|
+
[Dependency rules](dependency-rules.md#when-a-dependency-train-releases-outside-a-published-range).
|
|
35
|
+
|
|
36
|
+
### The version is too high
|
|
37
|
+
|
|
38
|
+
**Cause:** A train's last release is its highest tag on the branch, in the train's tag format. A tag
|
|
39
|
+
in another format, such as a `v1.2.0` from before the trains, is not read.
|
|
40
|
+
|
|
41
|
+
**Fix:** To start a train from a version, tag a commit with that version in the train's tag format.
|
|
42
|
+
|
|
43
|
+
### The notes list commits of another train
|
|
44
|
+
|
|
45
|
+
**Cause:** A commit that changes the files of two trains is in the notes of both.
|
|
46
|
+
|
|
47
|
+
**Fix:** When the notes must stay apart, split such a change into one commit for each train.
|
|
48
|
+
|
|
49
|
+
### A squashed merge request releases several trains
|
|
50
|
+
|
|
51
|
+
**Cause:** A squash commit holds all the changes of the merge request. It counts for each train
|
|
52
|
+
whose files it changes. Its message decides the type of release for each of those trains.
|
|
53
|
+
|
|
54
|
+
### The push is rejected
|
|
55
|
+
|
|
56
|
+
**Cause:** Two runs pushed to the branch at the same time, or the job started from a commit that is
|
|
57
|
+
behind the branch.
|
|
58
|
+
|
|
59
|
+
**Fix:** Run the trains one at a time, and fetch the branch before each run. See
|
|
60
|
+
[Run releases in CI](ci-recipes.md).
|
|
61
|
+
|
|
62
|
+
## Error codes
|
|
63
|
+
|
|
64
|
+
Every error of these packages is a `ReleaseError` from `@wtf/release-system/errors`, in the error
|
|
65
|
+
class of its package: `TrainsError` from `@wtf/release-trains/errors`, or `ReplaceError` from
|
|
66
|
+
`@wtf/release-replace/errors`. semantic-release prints them as it prints its own errors: the code,
|
|
67
|
+
the message, and the details, which say how to fix it. A step that finds more than one fault reports
|
|
68
|
+
all of them.
|
|
69
|
+
|
|
70
|
+
When git fails, the error is `EGIT`, itself a `ReleaseError`. A validator of options from
|
|
71
|
+
`@wtf/release-system` fails with `EOPTIONS`, or with the code its check gives, in the error class of
|
|
72
|
+
the package that asks.
|
|
73
|
+
|
|
74
|
+
This page lists the codes of the trains, npm and replace packages. The other packages describe their
|
|
75
|
+
own codes:
|
|
76
|
+
|
|
77
|
+
- Cargo: [Publish Cargo crates](publishing-crates.md).
|
|
78
|
+
- Go: [Publish Go modules](publishing-go-modules.md).
|
|
79
|
+
- Maven: [Publish Maven modules](publishing-maven.md).
|
|
80
|
+
- `@wtf/release-validate`: [Validate a config](validating-a-config.md).
|
|
81
|
+
- `EPUBLISHSMOKE` of `@wtf/release-npm`: [Publish npm packages](publishing.md).
|
|
82
|
+
|
|
83
|
+
### `ETRAINNOTSELECTED`
|
|
84
|
+
|
|
85
|
+
Package: `release-trains`.
|
|
86
|
+
|
|
87
|
+
**Cause:** No train is chosen for the run.
|
|
88
|
+
|
|
89
|
+
**Fix:** Set `RELEASE_TRAIN` in the job, or `train` at the root of the config.
|
|
90
|
+
|
|
91
|
+
### `ETRAINUNKNOWN`
|
|
92
|
+
|
|
93
|
+
Package: `release-trains`.
|
|
94
|
+
|
|
95
|
+
**Cause:** The chosen train is not declared.
|
|
96
|
+
|
|
97
|
+
**Fix:** Choose a declared train, or declare it.
|
|
98
|
+
|
|
99
|
+
### `ETRAINNAME`
|
|
100
|
+
|
|
101
|
+
Package: `release-trains`.
|
|
102
|
+
|
|
103
|
+
**Cause:** A train's name cannot be part of a tag.
|
|
104
|
+
|
|
105
|
+
**Fix:** Use only letters, digits, `.`, `_` and `-`.
|
|
106
|
+
|
|
107
|
+
### `ETRAINPATHS`
|
|
108
|
+
|
|
109
|
+
Package: `release-trains`.
|
|
110
|
+
|
|
111
|
+
**Cause:** A train declares no paths.
|
|
112
|
+
|
|
113
|
+
**Fix:** Give it `paths`.
|
|
114
|
+
|
|
115
|
+
### `ETRAINOVERLAP`
|
|
116
|
+
|
|
117
|
+
Package: `release-trains`.
|
|
118
|
+
|
|
119
|
+
**Cause:** The paths of two trains hold the same file, or the same package's folder.
|
|
120
|
+
|
|
121
|
+
**Fix:** Narrow the paths, or move a file that both trains use to `shared`.
|
|
122
|
+
|
|
123
|
+
### `ETAGFORMAT`
|
|
124
|
+
|
|
125
|
+
Package: `release-trains`.
|
|
126
|
+
|
|
127
|
+
**Cause:** One of these:
|
|
128
|
+
|
|
129
|
+
- A tag format does not contain `${version}` exactly once.
|
|
130
|
+
- Two trains share one tag format.
|
|
131
|
+
- The run tags with another format than the train's.
|
|
132
|
+
|
|
133
|
+
**Fix:** Pass `--tag-format "<train>-v${version}"`, or set `tagFormat` in the config.
|
|
134
|
+
|
|
135
|
+
### `ECHANGELOG`
|
|
136
|
+
|
|
137
|
+
Package: `release-trains`.
|
|
138
|
+
|
|
139
|
+
**Cause:** The train's changelog has no place. The train names no `changelog`, and its first path is
|
|
140
|
+
a glob, so there is no folder for its `CHANGELOG.md`.
|
|
141
|
+
|
|
142
|
+
**Fix:** Give the train a changelog of its own, such as `changelog: 'CHANGELOG-<train>.md'`, or
|
|
143
|
+
`changelog: false` for none.
|
|
144
|
+
|
|
145
|
+
### `ETRAINDEPENDSON`
|
|
146
|
+
|
|
147
|
+
Package: `release-trains`.
|
|
148
|
+
|
|
149
|
+
**Cause:** A `dependsOn` names no train, its own train, or a train that depends back on it.
|
|
150
|
+
|
|
151
|
+
**Fix:** Name other declared trains, and drop a name that makes a cycle. See
|
|
152
|
+
[Dependency rules](dependency-rules.md).
|
|
153
|
+
|
|
154
|
+
### `EDEPENDENCYUNSATISFIED`
|
|
155
|
+
|
|
156
|
+
Package: `release-trains`.
|
|
157
|
+
|
|
158
|
+
**Cause:** A package requires a version that no release of its train has.
|
|
159
|
+
|
|
160
|
+
**Fix:** Release that train first, or require a released version.
|
|
161
|
+
|
|
162
|
+
### `EDEPENDENCYNOTRAIN`
|
|
163
|
+
|
|
164
|
+
Package: `release-trains`.
|
|
165
|
+
|
|
166
|
+
**Cause:** A package depends on a package that is in no train, by a range that reaches the registry.
|
|
167
|
+
|
|
168
|
+
**Fix:** Put that package's folder in the `paths` of a train, or drop the dependency.
|
|
169
|
+
|
|
170
|
+
### `EDEPENDENCYNORELEASE`
|
|
171
|
+
|
|
172
|
+
Package: `release-trains`.
|
|
173
|
+
|
|
174
|
+
**Cause:** A package depends on a package of a train that has no release, by a range that reaches
|
|
175
|
+
the registry.
|
|
176
|
+
|
|
177
|
+
**Fix:** Release that train first.
|
|
178
|
+
|
|
179
|
+
### `EDEPENDENCYUNRELEASED`
|
|
180
|
+
|
|
181
|
+
Package: `release-trains`.
|
|
182
|
+
|
|
183
|
+
**Cause:** A dependency train has unreleased commits, and the config sets `dependencies: 'fail'`.
|
|
184
|
+
|
|
185
|
+
**Fix:** Release that train first.
|
|
186
|
+
|
|
187
|
+
### `EECOSYSTEM`
|
|
188
|
+
|
|
189
|
+
Package: `release-trains`.
|
|
190
|
+
|
|
191
|
+
**Cause:** An ecosystem in `ecosystems` cannot be loaded, is not an ecosystem, or has the same name
|
|
192
|
+
as another.
|
|
193
|
+
|
|
194
|
+
**Fix:** Install it in the repo or beside a global semantic-release, or name a file of it that is
|
|
195
|
+
there. Name each ecosystem once.
|
|
196
|
+
|
|
197
|
+
### `EGIT`
|
|
198
|
+
|
|
199
|
+
Package: `release-system`.
|
|
200
|
+
|
|
201
|
+
**Cause:** git failed, for example in a shallow clone.
|
|
202
|
+
|
|
203
|
+
**Fix:** Clone all of the history and the tags.
|
|
204
|
+
|
|
205
|
+
### `EWORKSPACE`
|
|
206
|
+
|
|
207
|
+
Package: `release-npm`.
|
|
208
|
+
|
|
209
|
+
**Cause:** A `package.json` in the workspace is not valid JSON.
|
|
210
|
+
|
|
211
|
+
**Fix:** Fix it, or leave its folder out of the workspace.
|
|
212
|
+
|
|
213
|
+
### `EGENERATED`
|
|
214
|
+
|
|
215
|
+
Package: `release-trains`.
|
|
216
|
+
|
|
217
|
+
**Cause:** A generated folder to list is not there.
|
|
218
|
+
|
|
219
|
+
**Fix:** List it after the build has written it.
|
|
220
|
+
|
|
221
|
+
### `EOPTIONS`
|
|
222
|
+
|
|
223
|
+
Package: `semantic-release-trains`.
|
|
224
|
+
|
|
225
|
+
**Cause:** One of these:
|
|
226
|
+
|
|
227
|
+
- A run has no `trains` or no `ecosystems`.
|
|
228
|
+
- An option is not valid, such as a `wrap` of no plugin.
|
|
229
|
+
- An entry has both `wrap` and `generated`.
|
|
230
|
+
|
|
231
|
+
**Fix:** See [Configure trains](configuring-trains.md).
|
|
232
|
+
|
|
233
|
+
### `EPLUGINLOAD`
|
|
234
|
+
|
|
235
|
+
Package: `semantic-release-trains`.
|
|
236
|
+
|
|
237
|
+
**Cause:** The plugin that a `wrap` entry wraps cannot be loaded.
|
|
238
|
+
|
|
239
|
+
**Fix:** Install it in the repo or beside a global semantic-release, or name a file of it that is
|
|
240
|
+
there, by its path or its `file:` URL.
|
|
241
|
+
|
|
242
|
+
### `ETAGNOTRELEASED`
|
|
243
|
+
|
|
244
|
+
Package: `semantic-release-trains`.
|
|
245
|
+
|
|
246
|
+
**Cause:** The tag of a `semantic-release-trains-tag` run is on no branch of the config, or on none
|
|
247
|
+
of the channel it was released on.
|
|
248
|
+
|
|
249
|
+
**Fix:** Push the branch with the tag, or fix semantic-release's note on the tag,
|
|
250
|
+
`refs/notes/semantic-release-<tag>`.
|
|
251
|
+
|
|
252
|
+
### `EINFORUN`
|
|
253
|
+
|
|
254
|
+
Package: `semantic-release-trains`.
|
|
255
|
+
|
|
256
|
+
**Cause:** A train's dry run failed. `semantic-release-trains-info` predicts the train's release
|
|
257
|
+
with that dry run.
|
|
258
|
+
|
|
259
|
+
**Fix:** The dry run's log is above the error. To see it alone, run
|
|
260
|
+
`RELEASE_TRAIN=<train> npx semantic-release --dry-run`.
|
|
261
|
+
|
|
262
|
+
### `EINFOVARIABLE`
|
|
263
|
+
|
|
264
|
+
Package: `semantic-release-trains`.
|
|
265
|
+
|
|
266
|
+
**Cause:** Two trains make the same variables of `semantic-release-trains-info`, such as `a-b` and
|
|
267
|
+
`a_b`.
|
|
268
|
+
|
|
269
|
+
**Fix:** Rename one of them, so that their names differ in a letter or a digit.
|
|
270
|
+
|
|
271
|
+
### `EPUBLISHER`
|
|
272
|
+
|
|
273
|
+
Package: `release-npm`.
|
|
274
|
+
|
|
275
|
+
**Cause:** The publisher cannot be loaded, or is not a publisher.
|
|
276
|
+
|
|
277
|
+
**Fix:** See [Publishing](publishing.md#publishers).
|
|
278
|
+
|
|
279
|
+
### `EPUBLISHCHECK`
|
|
280
|
+
|
|
281
|
+
Package: `release-npm`.
|
|
282
|
+
|
|
283
|
+
**Cause:** A package would not publish as it should. Nothing was published.
|
|
284
|
+
|
|
285
|
+
**Fix:** Fix each fault in the list.
|
|
286
|
+
|
|
287
|
+
### `EPUBLISHBEHIND`
|
|
288
|
+
|
|
289
|
+
Package: `release-npm`.
|
|
290
|
+
|
|
291
|
+
**Cause:** A release is below the version that its dist-tag points at on the registry. Nothing was
|
|
292
|
+
published.
|
|
293
|
+
|
|
294
|
+
**Fix:** Release forward. Two cases need more:
|
|
295
|
+
|
|
296
|
+
- npm pointed `latest` at a package on its first publish, on another channel: point it by hand.
|
|
297
|
+
- A package joined the train at a higher version: name it in `aside`.
|
|
298
|
+
|
|
299
|
+
### `EPUBLISH`
|
|
300
|
+
|
|
301
|
+
Package: `release-npm`.
|
|
302
|
+
|
|
303
|
+
**Cause:** A publish, or a question to the registry, failed.
|
|
304
|
+
|
|
305
|
+
**Fix:** Fix the cause, delete the tag, and run again at the release commit. See
|
|
306
|
+
[Publishing](publishing.md#when-a-publish-fails).
|
|
307
|
+
|
|
308
|
+
### `EREPLACE`
|
|
309
|
+
|
|
310
|
+
Package: `release-replace`.
|
|
311
|
+
|
|
312
|
+
**Cause:** The RegExp of a replacement is not a valid RegExp.
|
|
313
|
+
|
|
314
|
+
**Fix:** Give `from` the source of a RegExp, with its backslashes doubled, and `flags` without `g`.
|
|
315
|
+
|
|
316
|
+
### `ETEMPLATE`
|
|
317
|
+
|
|
318
|
+
Package: `release-replace`.
|
|
319
|
+
|
|
320
|
+
**Cause:** A replacement names a template that does not exist.
|
|
321
|
+
|
|
322
|
+
**Fix:** Define it in `templates`, at the root or in the entry, or name one that the error lists.
|
|
323
|
+
|
|
324
|
+
### `EVALUE`
|
|
325
|
+
|
|
326
|
+
Package: `release-replace`.
|
|
327
|
+
|
|
328
|
+
**Cause:** The text of a replacement names a value that the context does not have, or a value that
|
|
329
|
+
is not text.
|
|
330
|
+
|
|
331
|
+
**Fix:** Name a value that is text by its whole path, such as `${nextRelease.version}`.
|
|
332
|
+
|
|
333
|
+
### `EREPLACEFUNCTION`
|
|
334
|
+
|
|
335
|
+
Package: `release-replace`.
|
|
336
|
+
|
|
337
|
+
**Cause:** The function of a replacement returns no text.
|
|
338
|
+
|
|
339
|
+
**Fix:** Return a string, or a promise of one, for each match.
|
|
340
|
+
|
|
341
|
+
### `EREPLACEMODULE`
|
|
342
|
+
|
|
343
|
+
Package: `release-replace`.
|
|
344
|
+
|
|
345
|
+
**Cause:** The module of a replacement's function cannot be loaded, or its export is not a function.
|
|
346
|
+
|
|
347
|
+
**Fix:** Name a module of the repo by its path, or a package that the repo installs, and an export
|
|
348
|
+
that is a function.
|
|
349
|
+
|
|
350
|
+
## Look up an error code in your code
|
|
351
|
+
|
|
352
|
+
Each package exports its codes with what they mean:
|
|
353
|
+
|
|
354
|
+
| Export | Module |
|
|
355
|
+
| ---------------- | ------------------------------------- |
|
|
356
|
+
| `SYSTEM_ERRORS` | `@wtf/release-system/errors` |
|
|
357
|
+
| `TRAINS_ERRORS` | `@wtf/release-trains/errors` |
|
|
358
|
+
| `PLUGIN_ERRORS` | `@wtf/semantic-release-trains/errors` |
|
|
359
|
+
| `NPM_ERRORS` | `@wtf/release-npm/errors` |
|
|
360
|
+
| `REPLACE_ERRORS` | `@wtf/release-replace/errors` |
|
|
50
361
|
|
|
51
362
|
```ts
|
|
52
363
|
import { REPLACE_ERRORS } from '@wtf/release-replace/errors'
|
|
@@ -64,48 +375,3 @@ export function describe(error: unknown): string {
|
|
|
64
375
|
return `${MEANINGS[error.code] ?? error.message} ${error.details}`
|
|
65
376
|
}
|
|
66
377
|
```
|
|
67
|
-
|
|
68
|
-
## No release, but there are commits
|
|
69
|
-
|
|
70
|
-
- **The commits do not change the files of the train.** The run logs how many commits since the
|
|
71
|
-
last release change the files of the train. A commit of a file at the root, such as the lockfile,
|
|
72
|
-
counts only for the trains that list the file in `shared`, and only when it changes the own files
|
|
73
|
-
of no train: beside the files of another train, it counts for that train alone. See
|
|
74
|
-
[Which commits count](configuring-trains.md#which-commits-count).
|
|
75
|
-
- **The commits do not make a release.** The commit analyzer decides, with its preset. A `docs:` or
|
|
76
|
-
`chore:` commit makes no release with the default rules.
|
|
77
|
-
- **A `!` is not read.** A tool that reads the commits with other parser options can read
|
|
78
|
-
`feat!:` as a minor release, or as no release. Give every breaking commit a `BREAKING CHANGE:`
|
|
79
|
-
footer. See [the caveat](configuring-trains.md#a-preset-and-type).
|
|
80
|
-
- **A shallow clone.** A clone of one commit has no history and no tags of the trains. Clone with
|
|
81
|
-
all of the history: `GIT_DEPTH: 0` on GitLab, `fetch-depth: 0` on GitHub.
|
|
82
|
-
|
|
83
|
-
## A release with no commits of its own
|
|
84
|
-
|
|
85
|
-
A train releases when a dependency train released a version outside a range that the train's last
|
|
86
|
-
release published, by `workspace:*`, `workspace:^` or `workspace:~`: a major of a peer, a patch of a
|
|
87
|
-
dependency. The run logs each, and the notes have a section `### Dependencies` of them. Set
|
|
88
|
-
`cascade: false` at the root of the config for none. See
|
|
89
|
-
[Dependency rules](dependency-rules.md#a-release-of-a-dependency-train-that-a-published-range-does-not-take-a-cascade).
|
|
90
|
-
|
|
91
|
-
## A version that is too high
|
|
92
|
-
|
|
93
|
-
The last release of a train is its highest tag that the branch holds, in the tag format of the
|
|
94
|
-
train. A tag of another format, such as a `v1.2.0` from before the trains, is not read. To start a
|
|
95
|
-
train from a version, tag a commit in the format of the train.
|
|
96
|
-
|
|
97
|
-
## The notes have commits of another train
|
|
98
|
-
|
|
99
|
-
A commit that changes the files of two trains is in the notes of both. Split such a change into one
|
|
100
|
-
commit for each train when the notes must stay apart.
|
|
101
|
-
|
|
102
|
-
## A squashed merge request
|
|
103
|
-
|
|
104
|
-
A squash commit holds all the changes of the merge request, and it counts for each train whose files
|
|
105
|
-
it changes. Its message decides the type of release for each of those trains.
|
|
106
|
-
|
|
107
|
-
## The push is rejected
|
|
108
|
-
|
|
109
|
-
Two runs pushed to the branch at the same time, or the job started from a commit that is behind the
|
|
110
|
-
branch. Run the trains one at a time, and fetch the branch before each run. See
|
|
111
|
-
[CI recipes](ci-recipes.md).
|