Skip to content

Commit 65159df

Browse files
Light2Darkclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 12a17f1 commit 65159df

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ jobs:
8080
id-token: write
8181
contents: read
8282
steps:
83+
- name: 📥 Download package artifact
84+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
85+
with:
86+
name: package
87+
8388
- name: ⎔ Setup pnpm
8489
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
8590

@@ -89,11 +94,6 @@ jobs:
8994
node-version: 24
9095
registry-url: 'https://registry.npmjs.org'
9196

92-
- name: 📥 Download package artifact
93-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
94-
with:
95-
name: package
96-
9797
- name: 📦 Publish to NPM
9898
run: pnpm publish --no-git-checks --ignore-scripts
9999
env:

0 commit comments

Comments
 (0)