import { GitProject, HandlerResult } from "@atomist/automation-client"; import { ExecuteGoal } from "@atomist/sdm"; import { ProjectIdentifier } from "@atomist/sdm-core"; /** * Execute npm publish * * Tags with branch-name unless the `tag` option is specified. If the branch === the repo's default branch * also the next tags is being set * * @param {ProjectLoader} projectLoader * @param {ProjectIdentifier} projectIdentifier * @param {PrepareForGoalExecution[]} preparations * @return {ExecuteGoal} */ export declare function executePublish(projectIdentifier: ProjectIdentifier, options: NpmOptions): ExecuteGoal; export declare function deleteBranchTag(branch: string, project: GitProject, options: NpmOptions): Promise; /** * Create an npmrc file for the package. */ export declare function configureNpmRc(options: NpmOptions, project: { baseDir: string; }): Promise; /** * NPM options used when publishing NPM modules. */ export interface NpmOptions { /** The contents of a .npmrc file, typically containing authentication information */ npmrc: string; /** Optional registry, use NPM default if not present, currently "https://registry.npmjs.org" */ registry?: string; /** Optional publication access, use NPM default if not present, currently "restricted" */ access?: "public" | "restricted"; /** Optional publication tag, use NPM default if not present, currently "latest" */ tag?: string; /** Optionally tag default branch builds with the next dist-tag */ nextTag?: boolean; /** Optional flag, to indicate if a status should be created on the SCM containing a link to the package */ status?: boolean; } export declare function gitBranchToNpmTag(branchName: string): string; export declare function gitBranchToNpmVersion(branchName: string): string; //# sourceMappingURL=executePublish.d.ts.map