chore: Speed up CI using pnpm instead of npm (#259)

This commit is contained in:
Aaron
2023-12-04 14:14:44 -06:00
committed by GitHub
parent 8a25a2f60f
commit ed73451fd0
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -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 }}
+3 -1
View File
@@ -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 });
}