beachball
Advanced tools
Comparing version 2.31.7 to 2.31.8
@@ -29,2 +29,3 @@ "use strict"; | ||
timeout: undefined, | ||
gitTimeout: undefined, | ||
bump: true, | ||
@@ -31,0 +32,0 @@ canaryName: undefined, |
import { PackageInfo } from '../types/PackageInfo'; | ||
import { AuthType } from '../types/Auth'; | ||
export declare function packagePublish(packageInfo: PackageInfo, registry: string, token: string, access: string, authType?: AuthType, timeout?: number | undefined): Promise<import("execa").ExecaReturnValue<string> & { | ||
export declare function packagePublish(packageInfo: PackageInfo, registry: string, token: string, access: string, authType?: AuthType, timeout?: number | undefined, gitTimeout?: number | undefined): Promise<import("execa").ExecaReturnValue<string> & { | ||
success: boolean; | ||
}>; | ||
//# sourceMappingURL=packagePublish.d.ts.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
const npm_1 = require("./npm"); | ||
function packagePublish(packageInfo, registry, token, access, authType, timeout) { | ||
function packagePublish(packageInfo, registry, token, access, authType, timeout, gitTimeout) { | ||
const packageOptions = packageInfo.combinedOptions; | ||
@@ -12,0 +12,0 @@ const packagePath = path_1.default.dirname(packageInfo.packageJsonPath); |
@@ -11,3 +11,3 @@ "use strict"; | ||
async function bumpAndPush(bumpInfo, publishBranch, options) { | ||
const { path: cwd, branch, tag, message, timeout } = options; | ||
const { path: cwd, branch, tag, message, gitTimeout } = options; | ||
const { remote, remoteBranch } = workspace_tools_1.parseRemoteBranch(branch); | ||
@@ -59,3 +59,3 @@ let completed = false; | ||
try { | ||
const pushResult = workspace_tools_1.git(pushArgs, { cwd, timeout }); | ||
const pushResult = workspace_tools_1.git(pushArgs, { cwd, timeout: gitTimeout }); | ||
if (!pushResult.success) { | ||
@@ -62,0 +62,0 @@ console.warn(`[WARN ${tryNumber}/${BUMP_PUSH_RETRIES}]: push to ${branch} has failed!\n${pushResult.stderr}`); |
@@ -23,2 +23,3 @@ import { AuthType } from './Auth'; | ||
timeout?: number; | ||
gitTimeout?: number; | ||
token: string; | ||
@@ -25,0 +26,0 @@ type?: ChangeType | null; |
{ | ||
"name": "beachball", | ||
"version": "2.31.7", | ||
"version": "2.31.8", | ||
"description": "The Sunniest Semantic Version Bumper", | ||
@@ -72,3 +72,4 @@ "repository": { | ||
"jest-mock": "28.1.3", | ||
"prettier": "2.8.2", | ||
"normalized-tmpdir": "1.0.1", | ||
"prettier": "2.8.3", | ||
"strip-ansi": "6.0.1", | ||
@@ -75,0 +76,0 @@ "tmp": "0.2.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
319679
3963
26