publish: add back reset

generated from commit 2314b971c4c78a0ba78a1a20d18d3e04448295ad