build: add support for publishing
plugin: remove unused method