Skip to content

Commit ea54469

Browse files
authored
fix(ci): ensure imports don't throw workflow scripts (#1225)
1 parent ef3edfe commit ea54469

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/actions/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
export const BROWSERS = ['chrome', 'firefox', 'safari'] as const;
22
export type Browser = (typeof BROWSERS)[number];
3+
34
export const COLORS = {
45
green: '3fb950',
56
red: 'd73a49',
67
} as const;
8+
79
export const TEMPLATE_VARS = {
810
tableBody: '{{ TABLE_BODY }}',
911
sha: '{{ SHA }}',

.github/actions/delete-artifacts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { AsyncFunctionArguments } from 'github-script';
2-
import { BROWSERS, type Browser } from './constants';
2+
import { BROWSERS, type Browser } from './constants.ts';
33

44
async function getBrowserArtifacts(
55
{ github, context }: Pick<AsyncFunctionArguments, 'github' | 'context'>,

.github/actions/get-workflow-artifacts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs/promises';
22
import type { AsyncFunctionArguments } from 'github-script';
3-
import { COLORS, TEMPLATE_VARS, type Browser } from './constants';
3+
import { COLORS, TEMPLATE_VARS, type Browser } from './constants.ts';
44

55
const ARTIFACTS_DATA: Record<
66
Browser,

0 commit comments

Comments
 (0)