From 9a8800980b8a2f95c637eb1902f06c82235151e4 Mon Sep 17 00:00:00 2001 From: weboko Date: Fri, 23 Dec 2022 23:10:06 +0100 Subject: [PATCH] use npm in ci.yml --- .github/workflows/ci.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b46e89..e49e3bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,25 +24,21 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.2.2 - with: - version: 7 - - name: Install NodeJS uses: actions/setup-node@v2 with: node-version: "16" - cache: "pnpm" - cache-dependency-path: "*/pnpm-lock.yaml" + cache: "npm" + cache-dependency-path: "*/package-lock.json" - name: install - run: pnpm install --frozen-lockfile + run: npm ci working-directory: ${{ matrix.example }} - name: build - run: pnpm run build + run: npm run build working-directory: ${{ matrix.example }} - name: test - run: pnpm --if-present test + run: npm run test --if-present working-directory: ${{ matrix.example }}