Closed nzakas closed 4 years ago
One more alternative that builds on the two suggestions above: could we have it check for the existence of main
and use it instead of master
if it exists?
Ah, that’s an interesting alternative. It actually looks like we are only directly referencing the branch in one spot:
https://github.com/eslint/eslint-release/blob/master/lib/release-ops.js
If we change that to just “git push —tags”, I think it should still work (we should upgrade git on the Jenkins server to the latest just in case). That way, we could just update an individual package’s release job on Jenkins to pull whichever branch is appropriate.
Even better! :+1:
I'm working on this.
Right now,
eslint-release
always works off themaster
branch. In order to convert our repos to usemain
instead ofmaster
, we'll need to updateeslint-release
to be able to work on a different branch.There are a couple different ways I can envision this working:
eslint-release
that hardcodesmain
as the branch it uses. This would mean that repos switching tomain
first would use the latest version while other repos could continue using the older version.master
and allowmain
to be passed in (though at some point we'd probably want to switch the default).