fix(ci): update conditions for artifact uploads and cleanup steps in E2E tests

This commit is contained in:
GitHub Actions
2026-02-05 00:24:21 +00:00
parent 6809056c48
commit d4f89ebf73
3 changed files with 21 additions and 16 deletions

View File

@@ -5,11 +5,14 @@ import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
/**
* Read environment variables from file.
* Read environment variables from file (local development only).
* In CI, environment variables are provided by GitHub secrets.
* https://github.com/motdotla/dotenv
*/
import dotenv from 'dotenv';
dotenv.config({ path: join(dirname(fileURLToPath(import.meta.url)), '.env') });
if (!process.env.CI) {
dotenv.config({ path: join(dirname(fileURLToPath(import.meta.url)), '.env') });
}
/**
* Auth state storage path - shared across all browser projects