Files
getsentry__sentry-for-ai/scripts/bump-version.sh
Evan Purkhiser 88b2adfc59 ci(installer): bump release version with npm instead of pnpm (#194)
The preReleaseCommand failed in craft's container with "pnpm: command not
found" -- the image ships npm but not pnpm. Switch to `npm pkg set version`,
a plain package.json edit with no install, lockfile, or git-check side
effects.
2026-06-17 19:38:18 -04:00

18 lines
638 B
Bash
Executable File

#!/usr/bin/env bash
### Bumps the published package version during `craft prepare`.
###
### craft invokes this as: bump-version.sh <old-version> <new-version>
### The published artifact is built from packages/installer, so that is the
### package.json that must carry the release version -- the repo root is
### private and unversioned.
###
### Uses `npm pkg set` rather than pnpm: craft's container ships npm but not
### pnpm, and this is a plain package.json edit -- no install, lockfile, or
### git checks involved.
set -euo pipefail
NEW_VERSION="${2}"
cd "$(dirname "$0")/../packages/installer"
npm pkg set version="${NEW_VERSION}"