From 0a6da149ac987e7dbfa4c4693dc02b521d83924f Mon Sep 17 00:00:00 2001 From: "Mountain/\\Ash" Date: Mon, 11 Mar 2024 22:32:07 +0100 Subject: [PATCH] :construction_worker: call `vercel` through `npx` --- dist/index.js | 4 ++-- src/vercel.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 01856a29..ec463148 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 @@ -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 () => { diff --git a/src/vercel.js b/src/vercel.js index c13ec0c3..31c46f1d 100644 --- a/src/vercel.js +++ b/src/vercel.js @@ -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 @@ -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 () => {