From ed73451fd0c20970e8da60a478d97ccf5ac25d01 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 4 Dec 2023 14:14:44 -0600 Subject: [PATCH] chore: Speed up CI using `pnpm` instead of `npm` (#259) --- .github/workflows/validate.yml | 6 +++--- e2e/utils.ts | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5df5e4a8..02204c06 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -66,11 +66,11 @@ jobs: working-directory: templates/${{ matrix.template }} - run: npm i -D ../../wxt-*.tgz working-directory: templates/${{ matrix.template }} - - run: npm run compile + - run: pnpm compile if: matrix.template != 'svelte' working-directory: templates/${{ matrix.template }} - - run: npm run check + - run: pnpm check if: matrix.template == 'svelte' working-directory: templates/${{ matrix.template }} - - run: npm run build + - run: pnpm build working-directory: templates/${{ matrix.template }} diff --git a/e2e/utils.ts b/e2e/utils.ts index 6e0afc57..0144798a 100644 --- a/e2e/utils.ts +++ b/e2e/utils.ts @@ -77,7 +77,9 @@ export class TestProject { await fs.writeFile(filePath, content ?? '', 'utf-8'); } - await execaCommand('npm i --ignore-scripts', { cwd: this.root }); + await execaCommand('pnpm --ignore-workspace i --ignore-scripts', { + cwd: this.root, + }); await build({ ...config, root: this.root }); }