Files
klz-cables.com/.pnpm-store/v10/files/22/3608dd9f40eae06c88b8ab9b2eaafeeb00989a97e5f9d719682f9921a8829e779178f4b0248f14d4a3785227f5fb2ad1edb37031853687646beba9ee23fa4c-exec
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

38 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -eux
if [ "$(uname -s)" != "Linux" ]; then
echo "sentry-cli can only be released on Linux!"
echo "Please use the GitHub Action instead."
exit 1
fi
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR/..
VERSION="${1}"
TARGET="${2}"
echo "Current version: $VERSION"
echo "Bumping version: $TARGET"
perl -pi -e "s/^version = .*\$/version = \"$TARGET\"/" Cargo.toml
cargo update -p sentry-cli
# Do not tag and commit changes made by "npm version"
export npm_config_git_tag_version=false
# Bump main sentry cli npm package
npm version "${TARGET}"
# Bump the binary npm distributions
for dir in $SCRIPT_DIR/../npm-binary-distributions/*; do
cd $dir
npm version "${TARGET}"
cd -
done
# Update the optional deps in the main cli npm package
# Requires jq to be installed - should be installed ootb on github runners
jq '.optionalDependencies |= map_values("'"${TARGET}"'")' $SCRIPT_DIR/../package.json > package.json.tmp && mv package.json.tmp $SCRIPT_DIR/../package.json