From 11f57e2dd6a8dff7cdd1d113863307c5590bf3d5 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Thu, 2 Dec 2021 21:06:20 +0800 Subject: [PATCH] chore: use npm in npm scripts --- .github/workflows/ci.yml | 3 ++- package.json | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b77c169..2430ba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: # Runs a set of commands using the runners shell - name: Build and Test - run: pnpm test + run: npm test release: runs-on: ubuntu-latest @@ -68,6 +68,7 @@ jobs: ${{ runner.os }}-${{ matrix.node-version }}-release- ${{ runner.os }}- - run: npm i -g pnpm + - run: pnpm i - run: pnpx -y semantic-release --branches main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index b436f35..9f005df 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,12 @@ "url": "https://github.com/egoist/tsup.git" }, "scripts": { - "dev": "pnpm run build-fast -- --watch", + "dev": "npm run build-fast -- --watch", "build": "tsup src/cli-*.ts src/index.ts src/rollup.ts --clean --splitting", - "prepublishOnly": "pnpm run build-fast", - "test": "pnpm run build && pnpm run test-only", + "prepublishOnly": "npm run build-fast", + "test": "npm run build && npm run test-only", "test-only": "ava test/*.test.ts --fail-fast --timeout 60s", - "build-fast": "pnpm run build -- --no-dts" + "build-fast": "npm run build -- --no-dts" }, "ava": { "extensions": [