Skip to content

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

Merged
mscolnick merged 1 commit into
mainfrom
fix/release-pnpm-setup-order
Jun 8, 2026
Merged

fix(ci): download artifact before pnpm setup in publish job#15
mscolnick merged 1 commit into
mainfrom
fix/release-pnpm-setup-order

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

The publish job has no checkout step, so package.json (with packageManager) only exists after the artifact download. Running pnpm/action-setup first leaves it with no pnpm version to read — the same failure mode that broke codemirror-sql's release once it moved to action-setup v6 (v4 still has a fallback, so this is latent here).

Fix: reorder so the artifact download runs before pnpm setup.

Also fixes a pre-existing mis-indented Setup Node.js step.

Copilot AI review requested due to automatic review settings June 8, 2026 15:19

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

This PR fixes the publish job in the release workflow by ensuring the package artifact (which contains package.json and its packageManager field) is downloaded before pnpm/action-setup runs, and it also corrects a YAML indentation issue so steps are properly structured.

Changes:

  • Reordered the publish job steps so actions/download-artifact runs before pnpm/action-setup.
  • Fixed the mis-indentation of the Setup Node.js step in the publish job.

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

The publish job has no checkout step, so package.json (with the
packageManager field) only exists after the artifact download. Running
pnpm/action-setup first leaves it with no pnpm version to read.
@mscolnick
mscolnick force-pushed the fix/release-pnpm-setup-order branch from c90d510 to 5c0db27 Compare June 8, 2026 15:29
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 51.19% 321 / 627
🔵 Statements 51.19% 321 / 627
🔵 Functions 43.18% 19 / 44
🔵 Branches 83.33% 45 / 54
File CoverageNo changed files found.
Generated in workflow #38 for commit f47d961 by the Vitest Coverage Report Action

@mscolnick
mscolnick merged commit f47d961 into main Jun 8, 2026
4 checks passed
@mscolnick
mscolnick deleted the fix/release-pnpm-setup-order branch June 8, 2026 16:04
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.

2 participants