Good point on grepping for the version after publishing - that is indeed a part of my changelog (I follow this format, so it converts to HTML nicely), and my release workflow is aware of the version being published already.
And you're right, I don't have to handle everything in a single script. I suppose I could extract the token once locally and then use it via Playwright in my CD as a repository secret, updated once it breaks. However, I'm also considering skipping the CD for itch altogether - still script the upload and form update but run it entirely on my machine instead.
