build: Addressed build script to skip publish since semantic version

is matched with old tag .