From 12100bbef9eeb249e0cfaa2deb15e6573aa0f94c Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Mon, 4 Nov 2024 14:43:35 +0800 Subject: [PATCH] ci: pnpm --- .github/workflows/build.yml | 8 ++++---- .github/workflows/dev.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c022cec..fb58d8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,9 +20,9 @@ jobs: uses: actions/setup-node@main with: node-version: 'latest' - cache: 'npm' + cache: 'pnpm' - name: Install dependencies - run: npm install + run: pnpm install env: NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }} - name: Update local package.json version from release tag @@ -33,9 +33,9 @@ jobs: keep-v: "false" # If set to "true", will not remove any 'v' prefix from the version number. ignore-semver-check: "false" # If set to "true", will not check if the version number is a valid semver version. - name: Build scripts - run: npm run build + run: pnpm build - name: Generate modules - run: npm run build:args + run: pnpm build:args - name: Upload artifact uses: actions/upload-artifact@master with: diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index aab5099..8543163 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -21,13 +21,13 @@ jobs: uses: actions/setup-node@main with: node-version: 'latest' - cache: 'npm' + cache: 'pnpm' - name: Install dependencies - run: npm install + run: pnpm install env: NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }} - name: Build - run: npm run build:dev + run: pnpm build:dev - name: Upload artifact uses: actions/upload-artifact@master with: