Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

How to deal with "detached head" in Travis #40

Open
dtothefp opened this issue Nov 13, 2019 · 1 comment
Open

How to deal with "detached head" in Travis #40

dtothefp opened this issue Nov 13, 2019 · 1 comment
Labels
question Further information is requested

Comments

@dtothefp
Copy link

dtothefp commented Nov 13, 2019

When publishing with Lerna in Travis I commonly run into the issue with Travis not being able to push its commit because Travis clones in a detached head state.

https://stackoverflow.com/questions/32580821/how-can-i-customize-override-the-git-clone-step-in-travis-ci

Is there some sort of workout for this issue in this repo that I'm not seeing?

@dpaez
Copy link
Contributor

dpaez commented Nov 20, 2019

Hi @dtothefp 👋
On the examples showed here we always assume that the user want to build from master. Travis has an option to specify a different branch (to allow): https://docs.travis-ci.com/user/customizing-the-build/#building-specific-branches That could help I think.
Keep in mind that the goal here was to publish/deploy/release from travis, looking to automatize such a task.
Hope this helps a bit 👍

@dpaez dpaez added the question Further information is requested label Nov 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants