Skip to content

feat: validate npm publish version and tag inputs#16

Merged
cafitac merged 1 commit intomainfrom
feat/release-tagging-polish
Apr 29, 2026
Merged

feat: validate npm publish version and tag inputs#16
cafitac merged 1 commit intomainfrom
feat/release-tagging-polish

Conversation

@cafitac
Copy link
Copy Markdown
Owner

@cafitac cafitac commented Apr 29, 2026

Summary

  • add a release guard module that validates version consistency across package.json, pyproject.toml, and src/ai_crawler/__init__.py
  • validate tag-triggered npm publishes against the expected npm-v<version> tag before the workflow reaches publish
  • document the tag-based release flow in the README and cover the guard with unit tests plus module smoke checks

Testing

  • uv run --extra dev pytest tests/unit/test_npm_publish_guard.py -v
  • uv run --extra dev python -m ai_crawler.release.npm_publish --event-name workflow_dispatch --ref-name main
  • uv run --extra dev python -m ai_crawler.release.npm_publish --event-name push --ref-name npm-v0.1.1
  • bash scripts/check-python.sh
  • bash scripts/verify-ai-harness.sh

@cafitac cafitac merged commit 7ea9803 into main Apr 29, 2026
1 check passed
@cafitac cafitac deleted the feat/release-tagging-polish branch April 29, 2026 08:22
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