Skip to content

chore: release v2.2.3 - #210

Merged
biggora merged 1 commit into
masterfrom
dev/npm-publish-broken-871746
Aug 22, 2026
Merged

chore: release v2.2.3#210
biggora merged 1 commit into
masterfrom
dev/npm-publish-broken-871746

Conversation

@biggora

@biggora biggora commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Проблема

Публикация Publish #32558957627 упала на шаге Verify package contents:

npm error You cannot publish over the previously published versions: 2.2.2.

Тег v2.2.3 был повешен на мердж-коммит PR #209 (10607cc), где package.json всё ещё содержал "version": "2.2.2". Версия 2.2.2 уже опубликована в npm 2026-08-14, поэтому реестр отклонил повторную публикацию.

Пропущен принятый в репозитории шаг: сначала отдельный коммит chore: release vX.Y.Z, поднимающий версию (как 5375889 для 2.2.2), и только потом тег на него.

Изменения

  • package.json: 2.2.22.2.3.
  • CHANGELOG.md: секция ## Unreleased (содержимое PR fix: separate crawlers from apps that merely name the vendor #209) закрыта как ## 2.2.3 - 2026-08-22.
  • .github/workflows/publish.yml: новый шаг Verify tag matches package version сразу после Setup Node.js. Сверяет GITHUB_REF_NAME с версией в package.json до npm ci/тестов/аудита — расхождение теперь падает за секунды с внятным сообщением, а не всплывает как ошибка реестра на dry-run.

Проверка

  • npm ci — 0 vulnerabilities
  • npm test — 13 файлов, 201 тест, все зелёные
  • npm audit --audit-level=high — 0 vulnerabilities
  • npm publish --dry-run+ express-useragent@2.2.3, без ошибки о перезаписи версии
  • Логика нового шага проверена вхолостую: срабатывает на v9.9.9 vs 2.2.3, пропускает v2.2.3

После мержа

Тег v2.2.3 нужно перевесить на релизный коммит в master — сейчас он указывает на 10607cc.

🤖 Generated with Claude Code

The v2.2.3 tag was pushed onto the PR #209 merge commit while
package.json still read 2.2.2, so npm rejected the publish with
"You cannot publish over the previously published versions: 2.2.2".

Bump package.json to 2.2.3 and close the Unreleased changelog section.

Also add a pre-flight step to the publish workflow that compares the
git tag against package.json before npm ci / tests / audit run, so a
future mismatch fails in seconds with an actionable message instead of
surfacing as a registry error at the dry-run step.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@biggora
biggora merged commit 7cbbe14 into master Aug 22, 2026
7 checks passed
@biggora
biggora deleted the dev/npm-publish-broken-871746 branch August 22, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant