MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / getEnvVar

Function getEnvVar

scripts/validate-release.ts:25–29  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

23);
24
25const getEnvVar = (key: string) =>
26 Effect.sync(() => {
27 const env = globalThis as { readonly process?: { readonly env?: Record<string, string> } };
28 return env.process?.env?.[key];
29 });
30
31const isChangesetBranch = pipe(
32 'GITHUB_HEAD_REF',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected