UNPKG

@halospv3/hce.shared-config

Version:

Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.

38 lines 1.95 kB
import type { Type } from 'arktype'; import type { MSBuildProject, MSBuildEvaluationOutput } from './MSBuildProject.js'; import type { NugetProjectProperties } from './NugetProjectProperties.js'; import { NugetRegistryInfo } from './NugetRegistryInfo.js'; import type { Default } from 'arktype/internal/attributes.ts'; export declare const DefaultGithubTokenEnvVars: readonly ['GH_TOKEN', 'GITHUB_TOKEN']; export declare class GithubNugetRegistryInfo extends NugetRegistryInfo { static readonly NUGET_PKG_GITHUB_COM = "https://nuget.pkg.github.com"; /** * Creates an instance of GithubNugetRegistryInfo. * @param opts The input type of {@link GHNRIOpts.from} */ constructor(opts: typeof GHNRIOpts.inferIn); /** * Returns `https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json` * or (if GITHUB_REPOSITORY_OWNER is not defined in {@link process.env} nor * {@link process.cwd() $CWD}/.env) `undefined`. * @returns If GITHUB_REPOSITORY_OWNER is defined, returns the GitHub Package Repository URL endpoint for NuGet pushes (--source).\ * Otherwise, returns `undefined` */ static getNugetGitHubUrl(): string | undefined; } /** * The default value of {@link GHNRIOpts.t.source `source`} is dependent on * {@link GHNRI.getNugetGitHubUrl} and will default to an empty string if the * environment variable `GITHUB_REPOSITORY_OWNER` is undefined! */ export declare const GHNRIOpts: Type<{ project: MSBuildProject | { readonly Items: Readonly<Required<MSBuildEvaluationOutput>['Items']>; readonly Properties: Readonly<NugetProjectProperties>; readonly Targets: readonly string[]; readonly TargetResults: Required<MSBuildEvaluationOutput>['TargetResults'][]; }; source: Default<string, string>; tokenEnvVars: Default<readonly string[], readonly ['GH_TOKEN', 'GITHUB_TOKEN']>; }>; //# sourceMappingURL=GithubNugetRegistryInfo.d.ts.map