Skip to content

Commit d04b352

Browse files
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_01W872omgTVzywQbbjRvCX6q
1 parent 540c7c0 commit d04b352

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.autorc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[
1010
"exec",
1111
{
12-
"afterRelease": "python -m build && twine upload dist/*"
12+
"afterPublish": "python -m build && twine upload dist/*"
1313
}
1414
],
1515
"released"

0 commit comments

Comments
 (0)