Skip to content

fix(ci): download artifact before pnpm setup in release publish job#146

Closed
Light2Dark wants to merge 1 commit into
mainfrom
Light2Dark/release-failure-investigation
Closed

fix(ci): download artifact before pnpm setup in release publish job#146
Light2Dark wants to merge 1 commit into
mainfrom
Light2Dark/release-failure-investigation

Conversation

@Light2Dark

Copy link
Copy Markdown
Contributor

The publish job in the release workflow has no checkout step and only consumes the build artifact, but Setup pnpm ran before the artifact was downloaded. Since pnpm/action-setup@v6 resolves its version from package.json's packageManager field and no package.json existed in the workspace yet, the job failed with "No pnpm version is specified" — which broke the v0.2.6 release.

This reorders the publish job so the artifact (which includes package.json) is downloaded before Setup pnpm, keeping the pnpm version in a single source of truth. Note: v0.2.6 never published, so a tag will need to be re-pushed after this merges.

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>
Copilot AI review requested due to automatic review settings June 8, 2026 15:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the publish job in the Release GitHub Actions workflow by ensuring the build artifact (containing package.json) is present before pnpm/action-setup runs, preventing failures when pnpm resolves its version from packageManager in package.json.

Changes:

  • Move actions/download-artifact earlier in the publish job so package.json exists before pnpm/action-setup runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mscolnick

Copy link
Copy Markdown
Contributor

Closed by #147

@mscolnick mscolnick closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants