Skip to content

[rush] Fix minimumReleaseAge and minimumReleaseAgeExclude for PNPM by moving to pnpm-workspace.yaml#5859

Merged
iclanton merged 3 commits into
microsoft:mainfrom
aaronmaxlevy:aaron_fix_pnpm_minimum_release_age
Jul 15, 2026
Merged

[rush] Fix minimumReleaseAge and minimumReleaseAgeExclude for PNPM by moving to pnpm-workspace.yaml#5859
iclanton merged 3 commits into
microsoft:mainfrom
aaronmaxlevy:aaron_fix_pnpm_minimum_release_age

Conversation

@aaronmaxlevy

Copy link
Copy Markdown
Contributor

… to pnpm-workspace.yaml

Summary

Fixes #5752

Details

This fixes support for PNPM minimumReleaseAge and minimumReleaseAgeExclude by writing them to pnpm-workspace.yaml instead. There is an existing PR open for this #5798 , however that PR moves it to .npmrc instead, whereas according to @iclanton in #5798 (comment) it is preferable to put it in pnpm-workspace.yaml instead (which I agree with). It has been two weeks since that comment was left on #5798 and it hasn't been addressed there, so I figured I'd file my own PR, given that there are real security implications to this setting not working currently. Apologies if this is undesired.

How it was tested

Ran the Rush test suite and validated outputs.

Impacted documentation

N/A

@aaronmaxlevy

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Reve AI"

Comment thread libraries/rush-lib/src/logic/pnpm/PnpmWorkspaceFile.ts Outdated
@aaronmaxlevy
aaronmaxlevy force-pushed the aaron_fix_pnpm_minimum_release_age branch from 326ae7b to 1ef521e Compare July 14, 2026 21:27
aaronmaxlevy and others added 3 commits July 14, 2026 15:16
@aaronmaxlevy
aaronmaxlevy force-pushed the aaron_fix_pnpm_minimum_release_age branch from 1ef521e to 663534e Compare July 14, 2026 22:19
@iclanton iclanton changed the title Fix minimumReleaseAge and minimumReleaseAgeExclude for PNPM by moving… [rush] Fix minimumReleaseAge and minimumReleaseAgeExclude for PNPM by moving to pnpm-workspace.yaml Jul 15, 2026
@iclanton
iclanton merged commit 31fdbeb into microsoft:main Jul 15, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

[rush] minimumReleaseAge in pnpm-config.json is written to package.json but pnpm only reads it from .npmrc/pnpm-workspace.yaml

2 participants