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);