Repository navigation
build(npm): Bump lockfile optional deps in bump-version.sh - #3466
Open
sentry-junior[bot] wants to merge 1 commit into
Open
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Daniel Szoke <[email protected]>
sentry-junior
Bot
requested review from
a team and
szokeasaurusrex
as code owners
October 28, 2026 14:08
szokeasaurusrex
requested review from
JPeer264
and removed request for
msonnb
October 28, 2026 14:13
szokeasaurusrex
approved these changes
Oct 28, 2026
Lms24
approved these changes
Oct 28, 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.
Stops
masterfrom going red after every release becausepackage-lock.jsonfalls behind the@sentry/cli-*optional dependency versions inpackage.json.Until now, the release commit bumped
package.jsonand a Craft post-release step bumped the lockfile later, once npm listed the new platform packages. That step depends on how fast npm lists them.@sentry/cli-linux-arm64has been taking anywhere from about 15 minutes (3.8.1) to 56 minutes (3.8.2) to appear after publish. For 3.8.2 the 30-minute wait from #3451 ran out, so the lockfile never got bumped (fixed by hand in #3463).bump-version.shnow writes the new version into the lockfile entries in the same release commit. Each entry gets onlyversionandoptional. These entries don't need npm to resolve anything, so they can be written before the packages exist. If a version isn't on npm yet,npm ciwarns and skips that optional package instead of failing. The script exits if the lockfile is ever moved off lockfileVersion 1, so a format change can't silently skip the bump.Since the lockfile is in sync from the start:
scripts/post-release.shand thepostReleaseCommandin.craft.ymlare removed. Craft skips the post-release step when the script is missing.test_node.ymlnow usesnpm cilike everything else, without thenpm install --omit=optionalandnapi-postinstallworkaround. It also checks that the lockfile is in sync before publishing.via @szokeasaurusrex.
--
View Junior Session [Sentry]