Skip to content

Commit 74deafa

Browse files
committed
chore: vercel 배포 시 cache 사용하지 않도록 workflow 수정
1 parent 6c2b3cb commit 74deafa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy-vercel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
run: |
3535
set +e
3636
37-
# 1) Initial production deploy (capture logs)
38-
npx vercel --prod --yes \
37+
# 1) Initial production deploy with --force flag to skip cache
38+
npx vercel --prod --yes --force \
3939
--token "$VERCEL_TOKEN" \
4040
--scope "$VERCEL_ORG_ID" > deploy.log 2>&1
4141
EXIT_CODE=$?
@@ -48,7 +48,7 @@ jobs:
4848
if [ $EXIT_CODE -ne 0 ]; then
4949
if grep -q "Cannot find module '@repo/types'" deploy.log; then
5050
echo "❗️ Initial deployment failed due to @repo/types module error. Redeploying..."
51-
npx vercel redeploy "$DEPLOY_URL" \
51+
npx vercel redeploy "$DEPLOY_URL" --force \
5252
--token "$VERCEL_TOKEN" \
5353
--scope "$VERCEL_ORG_ID"
5454
REDO_EXIT=$?

0 commit comments

Comments
 (0)