From 65159dfb40f7da4769fc6ec6a2eb33f40c0d9060 Mon Sep 17 00:00:00 2001 From: Shahmir Varqha Date: Mon, 8 Jun 2026 23:13:39 +0800 Subject: [PATCH] fix(ci): download artifact before pnpm setup in publish job The publish job has no checkout step and resolves the pnpm version from package.json's packageManager field. Setup pnpm ran before the artifact was downloaded, so no package.json existed yet, causing "No pnpm version is specified". Reorder so the artifact (which contains package.json) is downloaded first. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2787cfe..6ec0489 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,6 +80,11 @@ jobs: id-token: write contents: read steps: + - name: 📥 Download package artifact + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 + with: + name: package + - name: ⎔ Setup pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6 @@ -89,11 +94,6 @@ jobs: node-version: 24 registry-url: 'https://registry.npmjs.org' - - name: 📥 Download package artifact - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 - with: - name: package - - name: 📦 Publish to NPM run: pnpm publish --no-git-checks --ignore-scripts env: