fix(ci): better deal with ci environments
This commit is contained in:
parent
9681acdcc4
commit
cb1ee35f2e
12
ts/index.ts
12
ts/index.ts
@ -2,8 +2,12 @@ import open = require('opn');
|
||||
import { ChildProcess } from 'child_process';
|
||||
|
||||
export let openUrl = async urlArg => {
|
||||
const childProcess = await open(urlArg, {
|
||||
wait: false
|
||||
});
|
||||
return childProcess;
|
||||
if(!(process.env.CI === 'true')) {
|
||||
const childProcess = await open(urlArg, {
|
||||
wait: false
|
||||
});
|
||||
return childProcess;
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user