Spaces:
Paused
Paused
File size: 539 Bytes
ec17af3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/usr/bin/env bash
set -euo pipefail
VERSION="${1:?Usage: ./scripts/release.sh <version>}"
if [ -n "$(git status --porcelain)" ]; then
echo "ERROR: working tree is not clean"
exit 1
fi
if [ "$(git branch --show-current)" != "main" ]; then
echo "ERROR: releases must be cut from main"
exit 1
fi
npm --workspace apps/web test -- --run
npm --workspace packages/shared exec tsc -- --noEmit
(cd apps/api && PYTHONPATH=src pytest -q)
docker compose build
git tag -a "${VERSION}" -m "Release ${VERSION}"
git push origin main --tags
|