-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root package-lock.json file not updated by release-pr in monorepo using npm workspaces #1993
Comments
Attempt to workaround googleapis/release-please#1993
I tried finding a workaround by adding
|
This results in some odd behavior if you attempt to Anyway, would be great if this action could update the lock, or provide some way for users to do it with their preferred package manager between the version bump and creating the PR. |
Yeah, looks like this file needs to take into account monoreos: https://github.com/googleapis/release-please/blob/main/src/updaters/node/package-lock-json.ts#L30-L39 I guess something with |
Co-authored-by: Jeff Ching <chingor@google.com> Fixes #1993
Environment details
release-please
version: Latest (I'm usinggoogle-github-actions/release-please-action@v3
)Steps to reproduce
release-please release-pr
in my demo repo (chore: release main jeremiah-clothier/release-please-demo#2)release-please--branches--main
npm install
locallyActual Behavior: The
./package-lock.json
file updates (see diff at bottom of PR description)Expected Behavior: The
./package-lock.json
file should be updated as part of the PR commit from release-pleaseAdditional notes
This behavior is slightly annoying because it requires you to manually checkout the PR branch, run
npm install
, and commit the changes prior to merging the PR.Any help on this would be much appreciated 💜 !
Example diff (from demo repo)
Diff when running `npm install` on the PR branch `release-please--branches--main`
The text was updated successfully, but these errors were encountered: