1
0
mirror of https://github.com/j178/prek.git synced 2026-04-09 01:52:24 +02:00
Files
prek/scripts/release.sh
2024-11-18 15:22:22 +08:00

18 lines
387 B
Bash
Executable File

#!/usr/bin/env bash
# Prepare for a release
#
# All additional options are passed to `rooster`
set -eu
script_root="$(realpath "$(dirname "$0")")"
project_root="$(dirname "$script_root")"
echo "Updating metadata with rooster..."
cd "$project_root"
# Update the changelog
uvx --from 'rooster-blue>=0.0.7' --python 3.12 -- rooster release "$@"
echo "Updating lockfile..."
cargo update