From 6f7b2f350077a18b184341b7eb3cefccc3534e7a Mon Sep 17 00:00:00 2001 From: John Craft Date: Wed, 24 Jan 2024 19:59:34 -0800 Subject: [PATCH] Install another way --- .github/workflows/test-migration.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-migration.yml b/.github/workflows/test-migration.yml index 7628075..ea03621 100644 --- a/.github/workflows/test-migration.yml +++ b/.github/workflows/test-migration.yml @@ -65,6 +65,8 @@ jobs: exit 1 fi + - run: npm install ansi_up + - name: Add or Update Comment on PR uses: actions/github-script@v7 if: always() @@ -73,9 +75,7 @@ jobs: const { MIGRATION_OUTPUT, EXIT_CODE } = process.env if (!MIGRATION_OUTPUT) return - const { execSync } = require('child_process'); - execSync('npm install ansi_up'); - const ansiUp = (await import('ansi_up')).default; + const ansiUp = require('ansi_up'); const ansi_up = new ansiUp(); const html = ansi_up.ansi_to_html(MIGRATION_OUTPUT);