From 7ffd7297c3e19df60cf6abfc3d935ca66fdfb1b7 Mon Sep 17 00:00:00 2001 From: David Blass Date: Tue, 9 Dec 2025 16:18:36 -0500 Subject: [PATCH] add note about loading .env for local dev --- play.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/play.ts b/play.ts index 75e858a..8e79c35 100644 --- a/play.ts +++ b/play.ts @@ -11,8 +11,10 @@ import { type Inputs, main } from "./main.ts"; import { log } from "./utils/cli.ts"; import { setupTestRepo } from "./utils/setup.ts"; +// load action's .env file in case it exists for local dev config(); -config({ path: join(process.cwd(), "../.env") }); +// .env file should always be at repo root for pullfrog/pullfrog repo with action submodule +config({ path: join(process.cwd(), "..", ".env") }); export async function run(prompt: string): Promise { try {