fix(release): parse noisy pnpm pack output - #382
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Experience Review
Before merge, make sure the PR body contains this completed checklist:
## Experience Review
- [x] 已判断是否需要沉淀经验
- [x] 如需要,已运行 `$post-task-experience-review`
- [x] reviewer `PASS` / `NOT APPLICABLE` 后才进入 mergeChecklist to confirm:
- Decide whether this PR produced reusable project experience.
- If experience should be captured, run
$post-task-experience-review. - Merge only after the independent reviewer reports
PASSorNOT APPLICABLEfor the Experience Review Result. - For workflow, permission, or release-rule documentation changes, also add this checked section to the PR body after an independent read-only conflict review:
## Policy Conflict Review
- [x] Independent read-only reviewer checked workflow, permission, and release-rule conflicts and reported PASS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm pack --jsonrecord when package lifecycle output is interleaved on stdout.Change Brief
pnpm pack --json, so parsing the complete stream as one JSON document can fail before an approved tarball is frozen..tgzfiles within the frozen output directory; publishing continues to use the frozen approved bytes.Impact Map
freezeApprovedTarballsthrough the existing npm publish guard.scripts/npm-publish-guard.mjs.scripts/npm-publish-guard.d.mts.scripts/__tests__/npm-publish-guard.spec.tsplus adjacent publish-plan tests.Abstraction Decision
Changelog
Screenshots
Not applicable; no UI change.
Validation
git diff --checkpassed.6b1554389d12e38b2eab8bd1abeeefd24afe1eb466dfb5e4826943ab5ef28fc6verified.pnpm tools pr-change-check origin/main HEAD --body-file .logs/pr-body.mdpnpm tools pr-preflight origin/main HEAD --body-file .logs/pr-body.md --jsonReview Scope
Experience Review
$post-task-experience-reviewPASS/NOT APPLICABLE后才进入 mergePolicy Conflict Review