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