Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ git merge -q --ff-only origin/main
[ "$(git rev-parse HEAD)" = "$before" ] || exec "$0" "$@"
# The workflow publishes origin/main, so a local commit not pushed yet would silently not ship.
[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/main)" ] || { echo "main is ahead of origin/main — push first" >&2; exit 1; }
# One release at a time on this machine, across every package: two sessions published at once on 2026-10-08.
lock="${XDG_RUNTIME_DIR:-/tmp}/leemour-release.lock"; exec 9>"$lock"; flock -n 9 || { echo "another release is running: $(cat "$lock.who" 2>/dev/null)" >&2; exit 1; }; echo "$(basename "$PWD") pid $$ since $(date -u +%H:%M)" > "$lock.who"

version=$(node -p 'require("./package.json").version')
# Only the top section: the rename below must never touch one that is already published.
Expand Down
Loading