Repository navigation
feat(release): unify the TypeScript, Rust and pnpr release flows on pnpm's native versioning - #12949
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe PR integrates Rust wrapper packages into workspace versioning, adds checkout-safe install guards, synchronizes released versions into Rust sources, and replaces manual product release workflows with a unified tag-driven pipeline for pnpm, pacquet, and pnpr. ChangesUnified native release
Estimated code review effort: 5 (Critical) | ~90+ minutes Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 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 |
PR Summary by QodoUnify TypeScript, Rust, and pnpr releases under a single Changesets flow
AI Description
Diagram
High-Level Assessment
Files changed (21)
|
Micro-Benchmark ResultsLinux |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1.
|
PR Code Suggestions ✨Latest suggestions up to cc38b18 Warning
Previous suggestionsSuggestions up to commit 1164f89
Suggestions up to commit 86f14bb
Suggestions up to commit 3f5e0e0
Suggestions up to commit a4ca85b
Suggestions up to commit 99cb017
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Confidence Score: 5/5Safe to merge. The release infrastructure changes are well-reasoned, thoroughly commented, and the key invariants (registry-outage detection, version consistency between Rust CLI and NAPI addon, trusted publishing throughout) are all correctly implemented. No defects found in the changed paths. The plan job correctly guards against a registry outage being misread as a pending release. The syncRustVersions function throws on a missing version site rather than silently no-opping. The dev-checkout guard in install.js correctly distinguishes a corrupt published package from the monorepo case. Tests cover the new bump.ts logic well. No files require special attention. Reviews (7): Last reviewed commit: "fix(release): revert the Rust CLI wrappe..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 594-606: Compute and expose a pnpr_tag output in the plan job’s
decide step using the same stable-versus-prerelease logic as RUST_TAG, then
update publish-pnpr to consume that plan output instead of hardcoding the latest
npm tag. Preserve latest for stable releases and use the appropriate prerelease
tag otherwise.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: bd181257-3935-4d50-8c9a-1e169d71be38
⛔ Files ignored due to path filters (2)
Cargo.lockis excluded by!**/*.lock,!Cargo.lockpnpr/npm/pnpr/CHANGELOG.mdis excluded by!**/CHANGELOG.md
📒 Files selected for processing (22)
.changeset/config.json.changeset/rust-wrapper-dev-checkout-guard.md.github/workflows/create-release-pr.yml.github/workflows/pacquet-release-to-npm.yml.github/workflows/pnpr-release-to-npm.yml.github/workflows/release.yml.meta-updater/src/index.tsAGENTS.mdpnpm-workspace.yamlpnpm/crates/config/src/defaults.rspnpm/npm/napi/package.jsonpnpm/npm/napi/scripts/generate-packages.mjspnpm/npm/pnpm/install.jspnpm/npm/pnpm/package.jsonpnpm/npm/pnpm/scripts/generate-packages.mjspnpm11/__utils__/scripts/src/bump.tspnpm11/__utils__/scripts/test/bump.tspnpr/crates/pnpr/Cargo.tomlpnpr/docker/README.mdpnpr/npm/pnpr/install.jspnpr/npm/pnpr/package.jsonpnpr/npm/pnpr/scripts/generate-packages.mjs
💤 Files with no reviewable changes (2)
- .github/workflows/pacquet-release-to-npm.yml
- .github/workflows/pnpr-release-to-npm.yml
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12949 +/- ##
==========================================
+ Coverage 85.57% 85.59% +0.02%
==========================================
Files 475 475
Lines 74718 74829 +111
==========================================
+ Hits 63940 64050 +110
- Misses 10778 10779 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The publish-pnpr job hardcoded --tag latest, so a pnpr prerelease (which pnpm bump can produce via the prerelease continuation) would have moved npm's latest dist-tag while docker-pnpr correctly withheld the latest image tag. The plan job now derives pnpr_tag (latest, or next for prereleases) the same way it derives rust_tag. Reported by greptile and coderabbit on #12949. Co-Authored-By: Claude Fable 5 <[email protected]>
GitHub Actions caches are writable by any workflow running on the default branch, so restoring a cache into a release build lets a poisoned cache entry inject code into the published, attested binaries. Release builds are infrequent enough that a cold build is an acceptable price for closing that path. Flagged by zizmor (cache-poisoning) on #12949. Co-Authored-By: Claude Fable 5 <[email protected]>
…mp.ts Declare main above the helpers it calls, per the repo convention that functions are declared after they are used. Also rephrase the prerelease regex comment to describe what the pattern matches today instead of referencing a historical versioning scheme. Reported by qodo on #12949. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Code review by qodo was updated up to the latest commit a4ca85b |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.9409424574600003,
"stddev": 0.1314822858640816,
"median": 3.9147537256600002,
"user": 3.6059097799999997,
"system": 3.49795194,
"min": 3.7879718591600002,
"max": 4.196872207159999,
"times": [
4.00553629916,
4.00388173916,
3.7879718591600002,
3.8866299461600002,
3.9428775051600002,
3.80567282716,
3.8594040511600003,
3.83800660116,
4.196872207159999,
4.08257153916
]
},
{
"command": "pacquet@main",
"mean": 3.86149675086,
"stddev": 0.17755887757984545,
"median": 3.7820354866600003,
"user": 3.60108988,
"system": 3.4848765400000006,
"min": 3.65898649216,
"max": 4.100448290159999,
"times": [
3.8233180471600003,
4.08352667116,
3.73999999816,
4.01462188816,
3.65898649216,
3.72372308316,
4.100448290159999,
3.68718583316,
3.7407529261600003,
4.0424042791599994
]
},
{
"command": "pnpr@HEAD",
"mean": 2.17705781156,
"stddev": 0.08536959076760815,
"median": 2.1834071336600003,
"user": 2.6822507800000004,
"system": 3.1181915399999998,
"min": 2.05279351716,
"max": 2.3304605461600003,
"times": [
2.2414427851600003,
2.25676244016,
2.1111003261600003,
2.08348478216,
2.17203210216,
2.05279351716,
2.19795771416,
2.3304605461600003,
2.19478216516,
2.12976173716
]
},
{
"command": "pnpr@main",
"mean": 2.1692885527600003,
"stddev": 0.1016137175450251,
"median": 2.14158870116,
"user": 2.7098584800000003,
"system": 3.1299465399999997,
"min": 2.01945414516,
"max": 2.32451991816,
"times": [
2.16319806716,
2.32451991816,
2.10660609516,
2.27969893016,
2.01945414516,
2.1503123201600003,
2.13286508216,
2.1243063861600002,
2.30796949516,
2.08395508816
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.69554847252,
"stddev": 0.012616717058773376,
"median": 0.69591748972,
"user": 0.4021877,
"system": 1.3932109,
"min": 0.68047134972,
"max": 0.71711028472,
"times": [
0.69601558972,
0.70440174572,
0.69581938972,
0.68776834272,
0.71711028472,
0.69681184572,
0.68047134972,
0.71175378372,
0.68426084772,
0.68107154572
]
},
{
"command": "pacquet@main",
"mean": 0.68410930632,
"stddev": 0.042905098511340105,
"median": 0.66554475622,
"user": 0.40181680000000003,
"system": 1.3575411,
"min": 0.65141464872,
"max": 0.79812670972,
"times": [
0.66210777672,
0.66070605672,
0.69976468372,
0.66602592472,
0.65141464872,
0.68891232872,
0.79812670972,
0.66176163272,
0.68720971372,
0.66506358772
]
},
{
"command": "pnpr@HEAD",
"mean": 0.76909854162,
"stddev": 0.10410065636903428,
"median": 0.72567411322,
"user": 0.4214544,
"system": 1.3875125000000001,
"min": 0.71466082472,
"max": 1.04242611072,
"times": [
0.73871089472,
0.84984800372,
0.71986779272,
0.72056200472,
0.72486532972,
0.73868648872,
0.71466082472,
0.71487506972,
0.72648289672,
1.04242611072
]
},
{
"command": "pnpr@main",
"mean": 0.7505696441199999,
"stddev": 0.010821893788356723,
"median": 0.75183691622,
"user": 0.41528829999999994,
"system": 1.4114046999999998,
"min": 0.73027994872,
"max": 0.76809923172,
"times": [
0.75837028172,
0.74829098372,
0.75154587172,
0.73661352472,
0.76809923172,
0.73027994872,
0.74908924672,
0.75212796072,
0.75857763572,
0.75270175572
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.438148248999999,
"stddev": 0.03860126944621971,
"median": 4.4461217358,
"user": 3.8966542000000004,
"system": 3.5345337199999998,
"min": 4.3745781583,
"max": 4.4964190243,
"times": [
4.4196376773,
4.4755131203,
4.4964190243,
4.4336746643,
4.4472595463,
4.3795295873,
4.4449839253,
4.3745781583,
4.4484222333,
4.4614645533
]
},
{
"command": "pacquet@main",
"mean": 4.4412438628,
"stddev": 0.042187324300497125,
"median": 4.4389408083,
"user": 3.8712542,
"system": 3.4933557199999994,
"min": 4.3772322643,
"max": 4.5237001453,
"times": [
4.4613096013,
4.4569784873,
4.4070680803,
4.4291176863,
4.4195090933,
4.4082718383,
4.5237001453,
4.3772322643,
4.4804875013,
4.4487639303
]
},
{
"command": "pnpr@HEAD",
"mean": 2.2216576719,
"stddev": 0.14053681323774259,
"median": 2.2255750702999997,
"user": 2.541674,
"system": 3.054225919999999,
"min": 2.0380132453,
"max": 2.4525039813,
"times": [
2.2260534963,
2.1372138392999998,
2.3431996203,
2.3828843743,
2.0380132453,
2.0598605063,
2.2250966442999998,
2.4525039813,
2.2547466893,
2.0970043223
]
},
{
"command": "pnpr@main",
"mean": 2.2563452118000002,
"stddev": 0.15440835081150941,
"median": 2.2348552103,
"user": 2.5177267,
"system": 3.00937842,
"min": 2.0875835103,
"max": 2.4647249343,
"times": [
2.4367189993,
2.1310066543,
2.0964248013,
2.3656585293,
2.4084341443,
2.1663159233,
2.1031901242999997,
2.4647249343,
2.3033944973,
2.0875835103
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.43367542084,
"stddev": 0.01622955763618019,
"median": 1.43365786114,
"user": 1.3845561199999998,
"system": 1.76805664,
"min": 1.41126590614,
"max": 1.46801741314,
"times": [
1.43447446314,
1.43284125914,
1.44801061714,
1.41126590614,
1.46801741314,
1.41463919414,
1.43570533314,
1.43015344514,
1.42422693214,
1.43741964514
]
},
{
"command": "pacquet@main",
"mean": 1.4352910887399999,
"stddev": 0.04255229025268935,
"median": 1.42363317764,
"user": 1.3696598199999996,
"system": 1.7547142400000002,
"min": 1.39943463714,
"max": 1.54767336214,
"times": [
1.44117538114,
1.54767336214,
1.39943463714,
1.42171320214,
1.40849982714,
1.4255531531399999,
1.42168237114,
1.40342180014,
1.44742810014,
1.43632905314
]
},
{
"command": "pnpr@HEAD",
"mean": 0.71790350444,
"stddev": 0.09877124896623414,
"median": 0.68576032764,
"user": 0.3541933199999999,
"system": 1.30723834,
"min": 0.66957274414,
"max": 0.9949061181400001,
"times": [
0.67166575214,
0.66957274414,
0.67374095014,
0.9949061181400001,
0.72365952014,
0.68751621414,
0.68400444114,
0.67552402914,
0.70410270714,
0.6943425681400001
]
},
{
"command": "pnpr@main",
"mean": 0.68311860754,
"stddev": 0.012547341665338132,
"median": 0.67791956764,
"user": 0.36586132000000005,
"system": 1.3013141400000001,
"min": 0.66783151314,
"max": 0.70434336714,
"times": [
0.67711994114,
0.66783151314,
0.67371986514,
0.67412938114,
0.6813237761400001,
0.67742476414,
0.70434336714,
0.69800580414,
0.69887329214,
0.67841437114
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.1423406695200002,
"stddev": 0.034112940249583425,
"median": 3.14140452672,
"user": 1.86262346,
"system": 2.03901876,
"min": 3.09335470672,
"max": 3.20803151372,
"times": [
3.13251333972,
3.15529190172,
3.17085323872,
3.1585205857200003,
3.1502957137200003,
3.13036345772,
3.12591950572,
3.09335470672,
3.20803151372,
3.09826273172
]
},
{
"command": "pacquet@main",
"mean": 3.11478118112,
"stddev": 0.041524156335098275,
"median": 3.11362465972,
"user": 1.8157046600000002,
"system": 2.01875076,
"min": 3.07046668072,
"max": 3.21534292072,
"times": [
3.1148528307200003,
3.11239648872,
3.12635325472,
3.11956893272,
3.07046668072,
3.08006008072,
3.07094191872,
3.11124192272,
3.21534292072,
3.1265867807200003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.68380833512,
"stddev": 0.010251484439603933,
"median": 0.68058242872,
"user": 0.35061316,
"system": 1.3261776599999997,
"min": 0.6678024287200001,
"max": 0.7020512077200001,
"times": [
0.67793955072,
0.67786031272,
0.68999196572,
0.67749690372,
0.6972236097200001,
0.7020512077200001,
0.68114760372,
0.6678024287200001,
0.68001725372,
0.68655251472
]
},
{
"command": "pnpr@main",
"mean": 0.7412919874200001,
"stddev": 0.0621589936924562,
"median": 0.72141696872,
"user": 0.35727986,
"system": 1.3700801599999999,
"min": 0.7099631147200001,
"max": 0.91751150672,
"times": [
0.72722489372,
0.7099631147200001,
0.71875312372,
0.72091883272,
0.72946198472,
0.7193902427200001,
0.72686223772,
0.7214960017200001,
0.72133793572,
0.91751150672
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.66969777778,
"stddev": 0.01251362708455056,
"median": 0.6679583012800001,
"user": 0.6360430799999998,
"system": 0.15683202,
"min": 0.65394312578,
"max": 0.68994492578,
"times": [
0.68994492578,
0.66913825278,
0.65756783478,
0.6839448447800001,
0.66416378078,
0.6667783497800001,
0.67122376378,
0.68353183178,
0.65394312578,
0.65674106778
]
},
{
"command": "pacquet@main",
"mean": 0.67269660748,
"stddev": 0.011315457441460088,
"median": 0.67143023428,
"user": 0.63939118,
"system": 0.15426282,
"min": 0.6584405157800001,
"max": 0.69514278578,
"times": [
0.66041067278,
0.66930514478,
0.68367848578,
0.66528983578,
0.69514278578,
0.67355532378,
0.6781963627800001,
0.66541524878,
0.6584405157800001,
0.67753169878
]
},
{
"command": "pnpr@HEAD",
"mean": 0.10856259337999999,
"stddev": 0.0017771048498065832,
"median": 0.10795412878,
"user": 0.02827173999999999,
"system": 0.0206846,
"min": 0.10680941178,
"max": 0.11474682178,
"times": [
0.10993812078,
0.10798289078000001,
0.10795412878,
0.10749581078,
0.10866933478,
0.10731290778,
0.10766413478,
0.10839974078,
0.10744348278,
0.10770448178,
0.10755810778,
0.10800796878,
0.10801612378,
0.11474682178,
0.11155866078,
0.10738123078,
0.10930187378,
0.11171173078,
0.10769256278,
0.10744343778,
0.10788468178,
0.10934940178,
0.10680941178,
0.10834594478,
0.10769184178
]
},
{
"command": "pnpr@main",
"mean": 0.10799209978,
"stddev": 0.0007469826169622904,
"median": 0.10778221078,
"user": 0.02945894,
"system": 0.01902516,
"min": 0.10687555578,
"max": 0.11059918978,
"times": [
0.10841737878,
0.10738237278,
0.10764427278,
0.10741095578,
0.10951597378,
0.10687555578,
0.10795274978,
0.10779144778,
0.10764494078,
0.11059918978,
0.10841146078,
0.10771712978,
0.10794967378,
0.10778131878,
0.10778221078,
0.10819035378,
0.10840058678,
0.10754923578,
0.10735049278,
0.10791474178,
0.10768543978,
0.10776993878,
0.10817834878,
0.10743956978,
0.10844715478
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 6.7795623105,
"stddev": 0.08747380161528004,
"median": 6.777111237,
"user": 3.83061978,
"system": 3.76762304,
"min": 6.63050555,
"max": 6.937709783,
"times": [
6.63050555,
6.679110388,
6.758104514,
6.751648829,
6.815775221,
6.937709783,
6.817622883,
6.859409437,
6.74961854,
6.79611796
]
},
{
"command": "pacquet@main",
"mean": 6.7898240857,
"stddev": 0.1478248045079195,
"median": 6.7903315045,
"user": 3.88971218,
"system": 3.8175022400000005,
"min": 6.565372846,
"max": 7.108255088,
"times": [
6.565372846,
6.775604374,
6.844260526,
6.63727398,
6.73415925,
7.108255088,
6.819722096,
6.721158432,
6.88737563,
6.805058635
]
},
{
"command": "pnpr@HEAD",
"mean": 5.145482059400001,
"stddev": 0.06266948227619519,
"median": 5.1284214304999995,
"user": 2.8468338799999997,
"system": 3.35443194,
"min": 5.059606644,
"max": 5.253204551,
"times": [
5.059606644,
5.147326853,
5.109516008,
5.091617425,
5.211939191,
5.209605111,
5.253204551,
5.102331931,
5.106969014,
5.162703866
]
},
{
"command": "pnpr@main",
"mean": 5.0640780453,
"stddev": 0.08859953063202773,
"median": 5.05405496,
"user": 2.83141178,
"system": 3.3285826399999996,
"min": 4.955826757,
"max": 5.206139342,
"times": [
5.00159817,
5.049970767,
4.955826757,
5.125859491,
5.163613074,
4.987935316,
5.206139342,
5.130774603,
4.96092378,
5.058139153
]
}
]
} |
|
| Branch | pr/12949 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 2,221.66 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 683.81 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 717.90 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 108.56 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 2,177.06 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 5,145.48 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 769.10 ms |
|
Code review by qodo was updated up to the latest commit 3f5e0e0 |
… (ENG-923) pnpm 11.12.0 and 11.13.0 publish their per-platform npm packages (@pnpm/linux-x64, @pnpm/macos-arm64, @pnpm/win-x64, ...) without the native pnpm binary (~1.9 kB metadata-only tarballs). pnpm/action-setup with standalone: true resolves @pnpm/exe, whose preinstall (setup.js) finds no platform binary and silently leaves the 34-byte placeholder, so every CI job dies at actions/setup-node with: @pnpm/exe/pnpm: 1: This: not found 11.11.0 is the last release whose platform packages contain the binary. Root cause is upstream pnpm/pnpm#12955 (release-flow regression from pnpm/pnpm#12949); no fixed release exists yet, so pin to 11.11.0. Updated packageManager (hash via corepack), ci.yaml (comments + pnpm-11 matrix corepack prepare + regression-guard note), build.yaml, AGENTS.md, and scaffold.ts.
pnpm 11.12.0 and 11.13.0 published their per-platform npm packages (@pnpm/linux-x64, @pnpm/macos-arm64, @pnpm/win-x64, ...) without the native binary (~1.9 kB metadata-only tarballs), so pnpm/action-setup --standalone left @pnpm/exe's 34-byte placeholder in place and every CI job died at actions/setup-node with: @pnpm/exe/pnpm: 1: This: not found Upstream fixed this in 11.13.1 (pnpm/pnpm#12955; release-flow regression from pnpm/pnpm#12949): the 11.13.1 platform packages ship the binary again (verified: @pnpm/[email protected] links a 146 MB pnpm and runs). Bump straight to 11.13.1 rather than the interim 11.11.0 pin. Updated packageManager (hash via corepack), ci.yaml (comments + pnpm-11 matrix corepack prepare + a note not to pin 11.12.0/11.13.0), build.yaml, AGENTS.md, and scaffold.ts.
Summary
Closes #12947.
Merges the three release flows — the TypeScript CLI, the Rust CLI +
@pnpm/napi, and pnpr — into a single flow driven by pnpm's native workspace versioning (#12953), replacing the@changesets/clidependency. Because the native engine keys package identity on the workspace directory, the repo now models the reality directly: one publishedpnpmpackage on two lines.The Rust CLI wrapper is
pnpm, on analphalane. The wrapper atpnpm/npm/pnpmpublishes aspnpm(the v12 line) alongside the TypeScript CLI atpnpm11/pnpm(v11) — two workspace projects sharing the published name, disambiguated by directory. Release config lives under the newversioningkey ofpnpm-workspace.yaml:versioning.lanesputs the Rust CLI,@pnpm/napi, and@pnpm/pnpron thealphalane, so eachpnpm version -rthat consumes one of their intents cuts anX.Y.Z-alpha.Nprerelease (published undernext), while the TypeScript CLI keeps releasing stable on the main lane. This replaces the hand-rolledcontinuePrereleasesstep.versioning.fixedkeeps the Rust CLI and@pnpm/napiat one shared version.versioning.ignorefreezes@pnpm/logger— it is a workspace package consumed through its published^1100.0.0catalog range as acatalog:peer (kept that way so Jest loads the published CJS-bole logger; see thebolenote in the catalog), which the engine would otherwise reject as an internal range that must useworkspace:. It is bumped out of band.The native ledger replaces
.changeset-released.pnpm version -rrecords consumed intents in the committed.changeset/ledger.yaml(per-package, directory-keyed), which is what keeps cherry-picks and merge-backs between release branches safe. The whole.changeset-released/directory and the ledger/prerelease machinery inbump.tsare gone —bump.tsis now justpnpm version -rfollowed bysyncRustVersions(which mirrors the bumped wrapper versions intoPNPM_VERSIONindefaults.rsand the pnpr crate'sCargo.toml/Cargo.lock, so the release builds report the committed versions).--filter=pnpmis qualified by directory. With two workspace projects namedpnpm, a bare name filter is ambiguous, so every build/release script that meant "the TypeScript CLI" now usespnpm{pnpm11/pnpm}(name ∩ directory) — in the root scripts, the meta-updater's generated test scripts,bundle-deps.ts,artifacts/exe, and the CI workflows. The meta-updater excludes the Rust wrappers by directory (not name, which now collides), and changesets targeting the TypeScript CLI reference it as./pnpm11/pnpm— the one additive extension to the changesets format, documented inAGENTS.md.One
release.ymlreleases everything. Aplanjob reads the committed versions, asks npm which are unpublished, and gates each product's jobs; the Rust jobs verify the committed versions and build--locked. All products publish via trusted publishing (no morepnpm stage publish/approve).@changesets/cli,.changeset/config.json, and the standalonepacquet-release-to-npm.yml/pnpr-release-to-npm.ymlworkflows are removed.Note on the lockfile (#12958)
pnpm-lock.yamlis committed regenerated from scratch. An incrementalpnpm install --lockfile-onlyafter the@changesets/cliremoval tripped a pacquet incremental-resolver bug (#12958) that rewrote@yarnpkg/[email protected]([email protected])— a peer-context variant the CLI depends on — to an empty{}, which then broke the CLI bundle build. A from-scratch resolve produces the correct result; the bug is filed separately and is not caused by this PR.Operational prerequisite (npm settings, before the first unified release)
Re-point the trusted-publisher bindings to
release.yml(environmentrelease) for:@pnpm/exe.<target>×8,@pnpm/napi+@pnpm/napi.<target>×8 (currently bound topacquet-release-to-npm.yml), and@pnpm/pnpr+@pnpm/pnpr.<target>×8 (currently bound topnpr-release-to-npm.yml).pnpmand@pnpm/exeare already bound torelease.yml.Verified
Rehearsed with pacquet
12.0.0-alpha.9(the pinned release package manager, which shipschange/lane/version -r):pnpm change status/pnpm version -rproduce, from the pending intents:pnpm 11.12.0 → 11.13.0(TypeScript, main lane) andpnpm 12.0.0-alpha.8 → 12.0.0-alpha.9(Rust, alpha lane) with@pnpm/napiin lockstep — no ambiguity or duplicate-identity errors. The ledger keys both by directory ([email protected]→pnpm11/pnpm,[email protected]→pnpm/npm/pnpm); the Rust-CLI intent is retained on the lane; a secondversion -ris a clean no-op.pnpm bump'ssyncRustVersionsmirrorsalpha.9intodefaults.rs. 30/30bump.tstests pass.pnpm install(from scratch),--frozen-lockfile,compile-only, andlint(spellcheck + meta-updater--test+ eslint) all pass; the twopnpm-named projects coexist and@pnpm/jest-config'spnpm: workspace:*resolves to the stable v11.Squash Commit Body
Checklist
bump.tstests rewritten for the native flow).AGENTS.mdchangesets guidance rewritten forpnpm change/ directory refs / lanes).Written by an agent (Claude Code, claude-opus-4-8[1m]).
Summary by CodeRabbit
New Features
teamcommand for managing teams and memberships, with OTP, parseable, and JSON output support.Bug Fixes
create,exec, andtestsubcommands.Release Updates
12.0.0-alpha.9and pnpr to0.1.0-alpha.0.