Repository navigation
Commit d04b352
committed
Run build & twine upload in afterPublish instead of afterRelease
auto's exec plugin passes every hook argument as a JSON-encoded ARG_<n>
environment variable. afterRelease's single argument carries all commits
in the release (with a full GitHub user record per PR commit), the release
notes and the GitHub release response, so for larger releases it exceeds
Linux's 128KiB per-string limit (MAX_ARG_STRLEN) and the command fails
with "spawnSync /bin/sh E2BIG" before it even starts, although
"python -m build && twine upload dist/*" never uses it
(intuit/auto#1294).
afterPublish takes no arguments, so no ARG_* variables are set. It runs
in "auto shipit" right after git-tag has created and pushed the new tag,
so the version derived from the tag is the same; the only difference is
that PyPI upload now happens before, rather than after, the GitHub
release is created.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W872omgTVzywQbbjRvCX6q1 parent 540c7c0 commit d04b352
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments