From af4b150ba174f2d0540588eff0ff41c971cfc11b Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Mon, 24 Apr 2023 11:31:16 -0700 Subject: [PATCH] chore: use fixed pnpm version in ci --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6efea4d..4978e83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,27 +11,31 @@ jobs: nodejs: [10, 12, 14, 16, 18] steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: pnpm/action-setup@v2.2.4 with: + version: 7.13.5 + - uses: actions/setup-node@v3 + with: + cache: 'pnpm' node-version: ${{ matrix.nodejs }} - name: Install - run: npm install + run: pnpm install - name: (coverage) Install if: matrix.nodejs >= 18 - run: npm install -g c8 + run: pnpm add -g c8 - name: Build - run: npm run build + run: pnpm run build - name: Test if: matrix.nodejs < 18 - run: npm test + run: pnpm test - name: (coverage) Test if: matrix.nodejs >= 18 - run: c8 --include=packages npm test + run: c8 --include=packages pnpm test - name: (coverage) Report if: matrix.nodejs >= 18