From 6963415807c675e044fd7fd1dc1613e8cbe8f265 Mon Sep 17 00:00:00 2001 From: jihchi Date: Fri, 27 Jan 2023 18:12:46 +0100 Subject: [PATCH] Migrate to pnpm in workflows --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 06c0e4e..2a8cfaa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,16 +14,21 @@ jobs: - name: Checkout repo uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 7.26.1 + - name: Use Node ${{ matrix.node }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + cache: 'pnpm' - - name: Install - run: npm install + - name: Install dependencies + run: pnpm install - name: Test - run: npm test --ci --coverage --maxWorkers=2 + run: pnpm test -- --ci --coverage --maxWorkers=2 - name: Build - run: npm run build + run: pnpm build