docs: document npm 12 install script blocking - #9838
Merged
Conversation
Add the omitted breaking-change note explaining that dependency lifecycle scripts are blocked by default and how to approve and run them.\n\nFixes #9750\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: f1b70f0a-a8ab-42ae-9f8a-5188817ce956
martinrrm
approved these changes
Aug 3, 2026
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
Add the omitted npm 12 breaking-change note explaining that dependency lifecycle scripts are blocked by default unless covered by
allowScripts, including the approval and rebuild workflow.Cause
The change was introduced in
5cd5150. Although its message described a v12-only default flip, it usedfeat:instead offeat!:and did not include aBREAKING CHANGE:footer. Release Please therefore classified it as a regular feature and omitted it from the aggregated npm 12 breaking-change notes.Release notes
The published
v12.0.0GitHub release was corrected manually with the same breaking-change entry. This PR corrects the source-controlled changelog used by the npm documentation site.Manual correction process
If a breaking change is omitted from release notes in the future:
Do not rewrite the merged commit. Add the missing entry under the released version’s
⚠️ BREAKING CHANGESsection in the rootCHANGELOG.mdand submit a documentation PR.After the PR merges, the npm documentation repository’s scheduled Update CLI workflow copies the root changelog into the corresponding CLI documentation page and publishes it. Dispatch that workflow manually if the docs need to update immediately.
Update the existing GitHub release separately because a changelog PR cannot modify an already-published release. Preserve the complete current release body before editing it because
gh release edit --notes-filereplaces the entire body:Verify that the source changelog, npm documentation page, and GitHub release contain identical wording.
To prevent the omission, breaking commits must use a conventional-commit breaking marker such as
feat!:and include aBREAKING CHANGE:footer describing the user-visible impact.Fixes #9750