fix: v1 dist-tag must be v1-latest — npm rejects v1 (#1829)
#1828 pinned v1 publishes to `--tag v1`, following the runbook (#1804 §1). That tag name is not legal: npm rejects any dist-tag that parses as a SemVer range, and `v1` parses as `1.x`. npm error Tag name must not be a valid SemVer range: v1 Found while running the companion `npm dist-tag add` step, which failed the same way. So the merged flag would not have "published to the wrong tag" — the next v1 security release would have failed to publish at all, and only at release time. `v1-latest` is accepted (verified against semver.validRange, along with `legacy`, which was the other candidate). The workflow comment now records both failure modes so neither the flag nor the specific tag name gets "cleaned up" later. Claude-Session: https://claude.ai/code/session_01Txmv2qqv3yeKgRzoqXytzD Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4f3e7fa167
commit
47f92841bc
1 changed files with 10 additions and 5 deletions
|
|
@ -47,7 +47,7 @@
|
|||
"prettier-check": "prettier --check .",
|
||||
"lint": "prettier --check . && cd client && npm run lint",
|
||||
"prepare": "husky && npm run build",
|
||||
"publish-all": "npm publish --workspaces --access public --tag v1 && npm publish --access public --tag v1",
|
||||
"publish-all": "npm publish --workspaces --access public --tag v1-latest && npm publish --access public --tag v1-latest",
|
||||
"update-version": "node scripts/update-version.js",
|
||||
"check-version": "node scripts/check-version-consistency.js"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue