Skip to content

Commit

Permalink
Add vercel.json input
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Sep 4, 2024
1 parent 6ec49bd commit 1d6416e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actions/smart-vercel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: 'Cache path'
required: false
default: '**/node_modules'
vercel_json_path:
description: 'Default vercel.json path'
required: false
default: './vercel.json'
cache_type:
description: 'Cache type, npm/yarn default yarn'
required: false
Expand Down Expand Up @@ -172,6 +176,7 @@ runs:
PREVIEW_OUTPUT=${{ inputs.preview_output }}
PROD_MODE=${{ inputs.prod_mode }}
DIST_PATH=${{ inputs.dist_path }}
PATH_VERCEL_JSON=${{ inputs.vercel_json_path }}
INPUT_ALIAS_DOMAIN='${{ inputs.alias_domain }}'
ALL_ALIAS_DOMAIN=$(echo "${INPUT_ALIAS_DOMAIN}" | sed ":a;$!N;s/\n/ /g;ba" | sed "s/,/ /g")
Expand All @@ -188,7 +193,6 @@ runs:
fi
fi
PATH_VERCEL_JSON=./vercel.json
if [ -f "${PATH_VERCEL_JSON}" ]; then
cp -r ${PATH_VERCEL_JSON} ${REPO_NAME}/
fi
Expand Down

0 comments on commit 1d6416e

Please sign in to comment.