publish: add register 'only once'

generated from commit f79311bb1ed771bbcc2851e220e14e59b1ac6afb