auto-tag: read the version from package.json #12
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/auto-tag-package-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
auto-tag only understood a TOML
version = "X.Y.Z"line, so Node projects (bunq-mcp) could not use it and were tagged by hand.version-fileending in.json: parse as JSON, use the top-levelversionkey (python3, no extra dependency). Anything else keeps the existing grep/sed lookup, so current callers are unaffected.fixtures/package-json/package.json(version 0.0.2, a tag this repo does not have).tagoutput for both formats (v0.0.1 from the TOML fixture, v0.0.2 from package.json); before it only ran the dry run without checking anything.Checked locally in a throwaway repo with a bare remote, using the script from action.yml: TOML dry run, JSON dry run, JSON with an existing tag (empty output, exit 0), JSON without a version key (::error, exit 1), JSON real push, and the idempotent second run.
Merging is the release for every caller, so wait for the self-test to be green first.
🤖 Generated with Claude Code
https://claude.ai/code/session_0137rmvr4GcRbtoEvABScjsT