From eb21e9234b8ac24b7b4eb712067c070f56105393 Mon Sep 17 00:00:00 2001 From: Edvard Chen Date: Fri, 13 Sep 2024 23:35:08 +0800 Subject: [PATCH] ci: fix pnpm not found --- .github/workflows/nodejs.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6fb9317..431080f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -16,18 +16,21 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x, 18.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v1 + - uses: pnpm/action-setup@v2 + with: + version: 8.13.1 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: + cache: pnpm node-version: ${{ matrix.node-version }} - - name: npm install, build, and test + - name: build and test run: | pnpm i --frozen-lockfile - pnpm run build --if-present pnpm test env: CI: true