https://docs.npmjs.com/cli/v7/using-npm/scripts#life-cycle-scripts This should allow installing from a git commit, and will also provide better assurance that `yarn build` always gets run before `npm publish`.