Usually:
For web novels, I write once, put it in grammarly, publish.
If a reader gave a good feedback or a major edit was needed, I edit the writing.
For visual novels, I write once until the end, edit from scratch, then do a lighter edit from scratch, put in grammarly, and I'm done.