Skip to content

Commit

Permalink
👷 call vercel through npx
Browse files Browse the repository at this point in the history
  • Loading branch information
mountainash committed Mar 11, 2024
1 parent f1b8ad7 commit 0a6da14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32363,7 +32363,7 @@ const init = () => {
}

core.info('Starting deploy with Vercel ▲ CLI')
const output = await execCmd('vercel', commandArguments, WORKING_DIRECTORY)
const output = await execCmd('npx vercel', commandArguments, WORKING_DIRECTORY)
const match = output.match(/(?<=https:\/\/)(.*)/g)
const parsed = match ? match[0] : null

Expand All @@ -32381,7 +32381,7 @@ const init = () => {
commandArguments.push(`--scope=${ VERCEL_SCOPE }`)
}

return await execCmd('vercel', commandArguments, WORKING_DIRECTORY)
return await execCmd('npx vercel', commandArguments, WORKING_DIRECTORY)
}

const getDeployment = async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/vercel.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const init = () => {
}

core.info('Starting deploy with Vercel ▲ CLI')
const output = await execCmd('vercel', commandArguments, WORKING_DIRECTORY)
const output = await execCmd('npx vercel', commandArguments, WORKING_DIRECTORY)
const match = output.match(/(?<=https:\/\/)(.*)/g)
const parsed = match ? match[0] : null

Expand All @@ -89,7 +89,7 @@ const init = () => {
commandArguments.push(`--scope=${ VERCEL_SCOPE }`)
}

return await execCmd('vercel', commandArguments, WORKING_DIRECTORY)
return await execCmd('npx vercel', commandArguments, WORKING_DIRECTORY)
}

const getDeployment = async () => {
Expand Down

0 comments on commit 0a6da14

Please sign in to comment.