Skip to content

Commit c3d6592

Browse files
Copilotamondnet
andcommitted
fix: make vercelScope optional to clean up retry cast in vercelDeploy
Co-authored-by: amondnet <1964421+amondnet@users.noreply.github.com> Agent-Logs-Url: https://github.com/amondnet/vercel-action/sessions/16d171b4-3be8-43f8-a736-b5f3ff13deba
1 parent c80f8f7 commit c3d6592

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface ActionConfig {
4242
vercelArgs: string
4343
vercelOrgId: string
4444
vercelProjectId: string
45-
vercelScope: string
45+
vercelScope?: string
4646
vercelProjectName: string
4747
vercelBin: string
4848
aliasDomains: string[]

src/vercel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function vercelDeploy(
6868

6969
output = ''
7070
errorOutput = ''
71-
const retryConfig: ActionConfig = { ...config, vercelScope: undefined as unknown as string }
71+
const retryConfig: ActionConfig = { ...config, vercelScope: undefined }
7272
const retryArgs = buildDeployArgs(retryConfig, deployContext)
7373

7474
exitCode = await exec.exec('npx', [config.vercelBin, ...retryArgs], options)

0 commit comments

Comments
 (0)