Commit c5205ad
authored
fix: require both vercel-org-id and vercel-project-id for deployment (#304)
* fix: require both vercel-org-id and vercel-project-id for deployment
Vercel CLI requires both VERCEL_ORG_ID and VERCEL_PROJECT_ID to be set
together. Previously, setting only vercel-project-id without vercel-org-id
caused a CLI error.
- skip setting VERCEL_PROJECT_ID when vercel-org-id is missing and warn
- also remove VERCEL_PROJECT_ID in the personal account retry path
- add missing vercel-org-id to example-static, example-angular, and deploy workflows
* fix: update retry warning message to reflect both env vars removal
* fix: skip VERCEL_ORG_ID when vercel-project-id is not provided
Align the behavior for missing vercel-project-id with the existing
behavior for missing vercel-org-id: warn and skip the env var instead
of exporting a partial configuration that can cause Vercel CLI v41+
scope errors.1 parent 6011ab6 commit c5205ad
File tree
5 files changed
+39
-8
lines changed- .github/workflows
- dist
5 files changed
+39
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59685 | 59685 | | |
59686 | 59686 | | |
59687 | 59687 | | |
59688 | | - | |
| 59688 | + | |
59689 | 59689 | | |
59690 | 59690 | | |
59691 | | - | |
59692 | | - | |
59693 | 59691 | | |
59694 | 59692 | | |
59695 | 59693 | | |
| 59694 | + | |
| 59695 | + | |
| 59696 | + | |
| 59697 | + | |
| 59698 | + | |
| 59699 | + | |
| 59700 | + | |
| 59701 | + | |
| 59702 | + | |
| 59703 | + | |
| 59704 | + | |
| 59705 | + | |
| 59706 | + | |
| 59707 | + | |
59696 | 59708 | | |
59697 | 59709 | | |
59698 | 59710 | | |
| |||
59798 | 59810 | | |
59799 | 59811 | | |
59800 | 59812 | | |
59801 | | - | |
| 59813 | + | |
59802 | 59814 | | |
59803 | 59815 | | |
| 59816 | + | |
59804 | 59817 | | |
59805 | 59818 | | |
59806 | 59819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
111 | 123 | | |
112 | 124 | | |
113 | 125 | | |
| |||
213 | 225 | | |
214 | 226 | | |
215 | 227 | | |
216 | | - | |
| 228 | + | |
217 | 229 | | |
218 | 230 | | |
| 231 | + | |
219 | 232 | | |
220 | 233 | | |
221 | 234 | | |
| |||
0 commit comments