From 8487762c085d5de13f27a5cd9911297114190f62 Mon Sep 17 00:00:00 2001 From: spencer Date: Sat, 9 Aug 2025 15:40:03 +0800 Subject: [PATCH] ci: resort the steps - Move pnpm install before setup nodejs --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73a2b27..61d9737 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: npm-publish +name: release on: pull_request: @@ -18,18 +18,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 20 registry-url: 'https://registry.npmjs.org' cache: 'pnpm' - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9 - - name: Install dependencies run: pnpm install --frozen-lockfile