From e01729c140ec50ddc6db13d8c80100f48c154e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 6 Mar 2024 18:59:54 +0800 Subject: [PATCH] ci: setup pnpm with standalone version --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a82f5c8..d4d02581 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,15 +38,24 @@ jobs: steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v3 + with: + standalone: true + - name: Set node version to ${{ matrix.node }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - run: corepack enable + cache: pnpm - name: Install run: pnpm i + - name: Downgrade deps for Node 14 + run: pnpm i tsup@6.7.0 + if: ${{ matrix.node == 14 }} + - name: Build run: pnpm run build