From 12fe9c74392f0921276a122825221e50508f111b Mon Sep 17 00:00:00 2001 From: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> Date: Tue, 28 Oct 2025 17:27:23 +0530 Subject: [PATCH] fix(ci): ensure imports don't throw workflow scripts --- .github/actions/constants.ts | 2 ++ .github/actions/delete-artifacts.ts | 2 +- .github/actions/get-workflow-artifacts.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/constants.ts b/.github/actions/constants.ts index 466f257d4..306574612 100644 --- a/.github/actions/constants.ts +++ b/.github/actions/constants.ts @@ -1,9 +1,11 @@ export const BROWSERS = ['chrome', 'firefox', 'safari'] as const; export type Browser = (typeof BROWSERS)[number]; + export const COLORS = { green: '3fb950', red: 'd73a49', } as const; + export const TEMPLATE_VARS = { tableBody: '{{ TABLE_BODY }}', sha: '{{ SHA }}', diff --git a/.github/actions/delete-artifacts.ts b/.github/actions/delete-artifacts.ts index 1e5912551..de6ede880 100644 --- a/.github/actions/delete-artifacts.ts +++ b/.github/actions/delete-artifacts.ts @@ -1,5 +1,5 @@ import type { AsyncFunctionArguments } from 'github-script'; -import { BROWSERS, type Browser } from './constants'; +import { BROWSERS, type Browser } from './constants.ts'; async function getBrowserArtifacts( { github, context }: Pick, diff --git a/.github/actions/get-workflow-artifacts.ts b/.github/actions/get-workflow-artifacts.ts index 22b7776ef..72bfd1463 100644 --- a/.github/actions/get-workflow-artifacts.ts +++ b/.github/actions/get-workflow-artifacts.ts @@ -1,6 +1,6 @@ import fs from 'node:fs/promises'; import type { AsyncFunctionArguments } from 'github-script'; -import { COLORS, TEMPLATE_VARS, type Browser } from './constants'; +import { COLORS, TEMPLATE_VARS, type Browser } from './constants.ts'; const ARTIFACTS_DATA: Record< Browser,