Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions scripts/update-package-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@ set-version)
if [[ "$version" == "$tagPrefix"* ]]; then
version="${version:${#tagPrefix}}"
fi
# Only first-party @sentry/* packages are safe to adopt immediately (see below).
allFirstParty=true
for i in ${!packages[@]}; do
list+="${packages[$i]}@$version "
if [[ "${packages[$i]}" != @sentry/* ]]; then
allFirstParty=false
fi
done
(
cd "${monorepoRoot}"
# The updater's job is to adopt the just-published version immediately, but
# Yarn 4's npmMinimalAgeGate (default 1 day, auto-enabled on CI) quarantines a
# fresh release and fails `yarn up`. For first-party @sentry/* packages there's
# no supply-chain risk, so disable the gate. Third-party packages (e.g.
# react-native via update-rn.sh) keep the gate.
if [[ "$allFirstParty" == true ]]; then
export YARN_NPM_MINIMAL_AGE_GATE=0
fi
yarn up $list
)
;;
Expand Down
Loading