It's easy to accidentally start a publish on a branch other than master and/or to pull the latest version from the remote. Theoretically we have all the data we need:
package.json#repository can tell us which remote we should be looking at
We can default to master and make the release branch configurable
We could make this a pre-flight check similar to what we do with node_modules.
It's easy to accidentally start a publish on a branch other than
master
and/or to pull the latest version from the remote. Theoretically we have all the data we need:package.json#repository
can tell us which remote we should be looking atmaster
and make the release branch configurableWe could make this a pre-flight check similar to what we do with
node_modules
.