Keep GitHub releases and npm publishing aligned with package.json while making deploy.sh the single source of truth for release validation.
18 lines
245 B
Bash
18 lines
245 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
cd "$ROOT_DIR"
|
|
|
|
if [[ -f ".env" ]]; then
|
|
set -a
|
|
# shellcheck disable=SC1091
|
|
source ".env"
|
|
set +a
|
|
fi
|
|
|
|
exec "$@"
|