ci(aio): add initial implementation for aio-builds setup
This commit is contained in:

committed by
Chuck Jazdzewski

parent
794f8f4e6a
commit
115164033b
@ -0,0 +1,11 @@
|
||||
// Functions
|
||||
export const getEnvVar = (name: string, isOptional = false): string => {
|
||||
const value = process.env[name];
|
||||
|
||||
if (!isOptional && !value) {
|
||||
console.error(`ERROR: Missing required environment variable '${name}'!`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
return value || '';
|
||||
};
|
Reference in New Issue
Block a user