mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-03-26 07:01:46 +00:00
chore: bump version to 1.8.0-rc3 (#774)
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
ad3decf71f
commit
42ddcfc1fe
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "harvester-ui-extension",
|
||||
"version": "1.8.0-rc2",
|
||||
"version": "1.8.0-rc3",
|
||||
"private": false,
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "harvester",
|
||||
"description": "Rancher UI Extension for Harvester",
|
||||
"version": "1.8.0-rc2",
|
||||
"version": "1.8.0-rc3",
|
||||
"private": false,
|
||||
"rancher": {
|
||||
"annotations": {
|
||||
|
||||
40
scripts/bump_version.sh
Executable file
40
scripts/bump_version.sh
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
# Usage: update package.json and pkg/harvester/package.json to desired version
|
||||
# Example: ./scripts/bump_version.sh v1.8.0-rc3
|
||||
|
||||
VERSION="$1"
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
echo "Example: $0 v1.8.0-rc3"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Strip leading 'v' if present
|
||||
VERSION="${VERSION#v}"
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
|
||||
FILES=(
|
||||
"$ROOT_DIR/package.json"
|
||||
"$ROOT_DIR/pkg/harvester/package.json"
|
||||
)
|
||||
|
||||
for FILE in "${FILES[@]}"; do
|
||||
if [ ! -f "$FILE" ]; then
|
||||
echo "File not found: $FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Use node to update version in-place while preserving formatting
|
||||
node -e "
|
||||
const fs = require('fs');
|
||||
const raw = fs.readFileSync('$FILE', 'utf8');
|
||||
const updated = raw.replace(/\"version\":\s*\"[^\"]*\"/, '\"version\": \"$VERSION\"');
|
||||
fs.writeFileSync('$FILE', updated);
|
||||
"
|
||||
|
||||
echo "Updated $FILE -> $VERSION"
|
||||
done
|
||||
Loading…
x
Reference in New Issue
Block a user