correct npm publish logic