fix(core): Exclude published versions from workflow history prune (#32239)