@@ -266,8 +266,9 @@ jobs:
266266 run : |
267267 # Remove any existing .vercel directory to avoid conflicts
268268 rm -rf .vercel
269- # Link project using environment variables
270- vercel link --token ${{ secrets.VERCEL_TOKEN }} --yes
269+ # Create .vercel directory with project configuration
270+ mkdir -p .vercel
271+ echo '{"orgId":"${{ secrets.VERCEL_ORG_ID }}","projectId":"${{ secrets.VERCEL_PROJECT_ID }}"}' > .vercel/project.json
271272 # Deploy to staging
272273 vercel --token ${{ secrets.VERCEL_TOKEN }} --yes
273274 env :
@@ -303,8 +304,9 @@ jobs:
303304 run : |
304305 # Remove any existing .vercel directory to avoid conflicts
305306 rm -rf .vercel
306- # Link project using environment variables
307- vercel link --token ${{ secrets.VERCEL_TOKEN }} --yes
307+ # Create .vercel directory with project configuration
308+ mkdir -p .vercel
309+ echo '{"orgId":"${{ secrets.VERCEL_ORG_ID }}","projectId":"${{ secrets.VERCEL_PROJECT_ID }}"}' > .vercel/project.json
308310 # Deploy to production
309311 vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes
310312 env :
@@ -336,8 +338,9 @@ jobs:
336338
337339 - name : Rollback deployment
338340 run : |
339- # Link project using environment variables
340- vercel link --token ${{ secrets.VERCEL_TOKEN }} --yes
341+ # Create .vercel directory with project configuration
342+ mkdir -p .vercel
343+ echo '{"orgId":"${{ secrets.VERCEL_ORG_ID }}","projectId":"${{ secrets.VERCEL_PROJECT_ID }}"}' > .vercel/project.json
341344 # Perform rollback
342345 vercel rollback --token ${{ secrets.VERCEL_TOKEN }} --yes
343346 env :
0 commit comments