While attempting to publish from master, we encountered an error stating that 'heads/master' doesn't exist in remote 'origin'. We were able to reproduce this on multiple machines. I've pasted the full error below.
NY5-87189-M:design-system sdalonzo$ npm run publish
> @ publish /Users/sdalonzo/priceline_oss/design-system
> lerna publish
lerna notice cli v3.20.1
lerna info current version 2.0.4
lerna ERR! ENOREMOTEBRANCH Branch 'heads/master' doesn't exist in remote 'origin'.
lerna ERR! ENOREMOTEBRANCH If this is a new branch, please make sure you push it to the remote first.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ publish: `lerna publish`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ publish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sdalonzo/.npm/_logs/2020-01-31T17_20_34_575Z-debug.log
We confirmed that each dev's origin was pointed to the new priceline Git org as opposed to the old pricelinelabs org.
While attempting to publish from
master
, we encountered an error stating that'heads/master' doesn't exist in remote 'origin'
. We were able to reproduce this on multiple machines. I've pasted the full error below.We confirmed that each dev's
origin
was pointed to the newpriceline
Git org as opposed to the oldpricelinelabs
org.