diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c82c5728..787a79106 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,21 +7,18 @@ jobs: tests: strategy: matrix: - node: [18, 20] os: ['ubuntu-latest', 'windows-latest'] runs-on: ${{ matrix.os }} steps: + - uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node }} + node-version: '20.18.2' - run: corepack enable && corepack prepare - # Note: actions/setup-node doesn't yet provide parameters for corepack, we need to run it again after enabling it - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - cache: pnpm - run: node --version diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dad8bca7a..98d358a33 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,15 +26,18 @@ jobs: git pull origin release --rebase=false --ff-only git merge --no-ff main + - uses: pnpm/action-setup@v4 + with: + version: 9 - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 20 + node-version: '20.18.2' - run: corepack enable && corepack prepare # Note: actions/setup-node doesn't yet provide parameters for corepack, we need to run it again after enabling it - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: '20.18.2' cache: pnpm - name: Install dependencies