Skip to content

chore(release): set publishConfig.tag to next so a bare npm publish can never move latest #1184

Closed

Description

@admarble

Observed

Twice in a row (v2.17.0 and v2.18.0, 2026-09-27) the human-typed publish moved latest before the soak. /release Step 9 hands over the exact line npm publish --tag next --otp=<code> and states what the flag prevents, and the bare npm publish still got typed. The v2.18.0 npm log (~/.npm/_logs/2026-09-27T02_40_03_233Z-debug-0.log) shows argv "publish" → "Publishing … with tag latest" → PUT 202; the registry then read latest: 2.18.0 with no next tag, and latest had to be restored to 2.17.0 by hand.

A handoff instruction is not a guard. The guard belongs in the package: with "publishConfig": { "tag": "next" } in package.json, a bare npm publish lands on next, and only the deliberate Step 9b npm dist-tag add sequant@<v> latest moves latest.

Acceptance criteria

  • Tier: mechanical
  • AC-1: package.json carries "publishConfig": { "tag": "next" } — Evidence: node -p "require('./package.json').publishConfig.tag" prints next
  • AC-2: a gate test runs the real npm publish against a local registry and asserts the dist-tags npm sends are next (bare) and beta (--tag beta), mutation-verified (delete publishConfig; exactly the bare-publish case fails) — Evidence: npx vitest run scripts/release-publish-tag.integration.test.ts passes, mutation-verified. (Renamed from .test.ts on 09-27: it spawns npm, so it belongs in the integration project; a package.json read would be a doc-gate tautology, and npm's --dry-run notice ignores publishConfig.)
  • AC-3: /release Step 9 (all three skill copies) states that --tag next is now the package default via publishConfig; the handoff line keeps --tag next (explicit, harmless, and required by release-skill-soak.test.ts); Step 9b is unchanged — Evidence: grep -n "publishConfig" .claude/skills/release/SKILL.md skills/release/SKILL.md templates/skills/release/SKILL.md matches all three
  • AC-4: the canary's registry mock, if it asserts the publish tag, still passes — Evidence: npx vitest run --project canary → 4 passed

Non-Goals

  • Automating the OTP or the soak: a human still types the publish and the promotion.
  • Changing npm dist-tag add … latest (Step 9b) or the --soaked gate.

Activity

  1. added
    enhancement
    on Sep 27, 2026
  2. added a commit that references this issue on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions