Repository navigation
ci(pacquet): draft a GitHub release with install-script assets - #12907
Conversation
The Rust pnpm releases only published to npm, so get.pnpm.io's install.sh / install.ps1 — which download pnpm-<platform>-<arch>[-musl] archives from GitHub releases — could not install v12 at all. Add a github-release job that repackages the build artifacts under the v11 asset naming scheme (binary renamed from pacquet-<target> to pnpm / pnpm.exe at the archive root), attests them, and drafts a GitHub release. Draft keeps publication a deliberate maintainer action, same as the staged npm wrappers; make_latest: false keeps a v12 prerelease from taking the "Latest" badge from the stable v11 line. Co-Authored-By: Claude Fable 5 <[email protected]>
PR Summary by QodoCI: Draft GitHub releases with v11-style pnpm assets for v12 install scripts
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe release workflow packages platform binaries as ChangesPlatform binary release
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant build as build job
participant publish as publish job
participant packages as package generation
participant release as github-release job
participant github as GitHub Releases
build->>build: create pnpm-target archives
build->>publish: upload binaries-target artifacts
publish->>packages: provide target-qualified binaries
build->>release: download binaries-target artifacts
release->>github: create draft release and upload pnpm archives
Possibly related PRs
Suggested labels: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review by Qodo
Context used✅ Compliance rules (platform):
51 rules 1. Tag/source version mismatch
|
PR Code Suggestions ✨Warning
Explore these optional code suggestions:
|
|||||||||
Rename the build-job archives from pacquet-<target> to pnpm-<target> with a plain pnpm / pnpm.exe binary at the archive root — the layout the v11 releases use and the install scripts expect. The github-release job now uploads the build artifacts byte-for-byte as attested, instead of repackaging (and re-attesting) them. Since every archive now holds an identically-named binary, the publish job extracts each into a scratch dir and moves the binary out under its target-qualified name (this also drops the third-party unzip action). The generated native package dirs keep the pacquet- prefix so they stay out of the pacquet/npm/pnpm* wrapper glob. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Code review by qodo was updated up to the latest commit dc0c3db |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
* fix: limit the Intel macOS abort to pnpm v11 pnpm v12 (the Rust port) ships a working darwin-x64 binary again — the Node.js SEA segfault that forced the guard only affects the v11 SEA builds. Gate the abort on major == 11 so v12 installs proceed on Intel Macs once the v12 GitHub releases carry the darwin-x64 asset (pnpm/pnpm#12907). Co-Authored-By: Claude Fable 5 <[email protected]> * chore: sign * fix: detect macOS in install.ps1 on PowerShell 7.6+ PowerShell 7.6 is built on .NET 10, where RuntimeInformation.OSDescription on macOS returns "macOS <version>" instead of the Darwin kernel string, so $PSVersionTable.OS no longer matches 'Darwin*'. The macOS 26 runner images (macos-latest since 2026-06-15) ship pwsh 7.6, which made the installer abort with "Platform could not be determined". Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Zoltan <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
What
Publishes GitHub release assets from
pacquet-release-to-npm.ymlso get.pnpm.io's install scripts can install v12.Why
The Rust pnpm releases publish to npm only — no git tag, no release assets. But
install.sh/install.ps1on get.pnpm.io downloadpnpm-<platform>-<arch>[-musl].tar.gz(.zipon Windows) from GitHub releases, soPNPM_VERSION=12.xcurrently 404s and surfaces as a generic "Install Error!". Publishing release assets under the existing v11 naming scheme makes the install scripts work for v12 with essentially no changes on the get.pnpm.io side (only the Intel-macOS guard needs to become v11-bound there, since the Rust build shipsdarwin-x64again).How
pnpm-<target>.tar.gz/.zipwith a plainpnpm/pnpm.exebinary at the archive root — the exact layout the v11 releases use and the install scripts expect. (Thepacquetbin is renamed at archive time; it's getting renamed topnpmeventually anyway.)github-releasejob (needs:build,publish) downloads the artifacts and drafts av<version>release viasoftprops/action-gh-release— the same action and draft-first flow as the v11 pipeline inrelease.yml, so publishing the assets stays a deliberate maintainer action, mirroring thepnpm stage approvegate for the npm wrappers. The assets are uploaded byte-for-byte as attested in the build job — no repackaging.prereleaseis derived from the version suffix, andmake_latest: falseprevents a published v12 prerelease from taking the "Latest" badge from the stable v11 line.pnpm-<target>[.exe]), whichgenerate-packages.mjsnow reads. This also drops the third-partymontudor/action-zipaction. The generated native package dirs keep thepacquet-prefix so they can't be caught by thepacquet/npm/pnpm*wrapper glob in the stage step.Verified locally with mock binaries for all 8 targets, running the exact archive → extract →
generate-packages.mjschain: no binary clobbering across targets, each@pnpm/exe.<target>package gets its own binary, exec bits survive, and asset names matchinstall.sh'sasset_basenameoutput exactly. Also confirmed the Rust CLI implementspnpm setup --force, which the install scripts run after extraction.Notes
🤖 Generated with Claude Code
Summary by CodeRabbit