Skip to content

promote-latest.sh: serialize concurrent runs (no lockfile) #372

Closed

Description

@tps-anvil

Follow-up from #366 (the latest promote tool).

scripts/promote-latest.sh takes no lock. Two runs against the same repo and registry at
once can interleave their npm dist-tag add calls, and a rollback in one run can undo the
other's good promote. Nothing prevents a second operator — or a re-run — from starting while
a first run is mid-loop.

Add a lockfile (repo-local) acquired before the first move and released on exit, including
via the existing INT/TERM/HUP traps, refusing with a clear message if it is already held.

Refs #366

Activity

  1. added
    P3Low: nice to have, do when idle
    on Oct 1, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. moved this from Ready to In review in Office queueon Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Low: nice to have, do when idle

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions