File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ export async function run() {
52
52
}
53
53
54
54
core . info ( 'processing deploy to Vercel' ) ;
55
- await vercel . pull ( ) ;
56
55
await vercel . build ( ) ;
57
56
await vercel . deploy ( ) ;
58
57
Original file line number Diff line number Diff line change @@ -7,26 +7,10 @@ export class Vercel {
7
7
this . token = token ;
8
8
}
9
9
10
- pull ( ) {
11
- return new Promise ( ( resolve , reject ) => {
12
- child . exec (
13
- `npx vercel build --token=${ this . token } --yes` ,
14
- ( error , stdout ) => {
15
- if ( error ) {
16
- reject ( `Failed pull environment from Vercel: ${ error } ` )
17
- return ;
18
- }
19
-
20
- resolve ( stdout ) ;
21
- }
22
- ) ;
23
- } ) ;
24
- }
25
-
26
10
build ( ) {
27
11
return new Promise ( ( resolve , reject ) => {
28
12
child . exec (
29
- `npx vercel build --token=${ this . token } ` ,
13
+ `npx vercel build --prod -- token=${ this . token } --yes ` ,
30
14
( error , stdout ) => {
31
15
if ( error ) {
32
16
reject ( `Build failed: ${ error } ` ) ;
@@ -42,7 +26,7 @@ export class Vercel {
42
26
deploy ( ) {
43
27
return new Promise ( ( resolve , reject ) => {
44
28
child . exec (
45
- `npx vercel --token=${ this . token } --prod` ,
29
+ `npx vercel --token=${ this . token } --prod --yes ` ,
46
30
( error , stdout ) => {
47
31
if ( error ) {
48
32
reject ( `Deploy failed: ${ error } ` ) ;
You can’t perform that action at this time.
0 commit comments