publish-to-git icon indicating copy to clipboard operation
publish-to-git copied to clipboard

Publish (also) as a branch

Open Treora opened this issue 5 years ago • 2 comments

It would be great to be able to make all tags form a branch, e.g. release.

Besides making it easier to overview the tags, it would let a client run npm install https://git.example.com/project#release to get the latest version.

Projects may even want this branch to be called master (and have the source in e.g. develop) so that npm install https://git.example.com/project would install the latest release, according to the npm docs:

If neither #<commit-ish> or #semver:<semver> is specified, then master is used.

Treora avatar Mar 17 '20 00:03 Treora

Can you propose example syntax? And maybe even submit a PR for it? :-)

Rush avatar Apr 18 '20 17:04 Rush

Can you propose example syntax?

I guess just --branch <branchname> would be adequate?

And maybe even submit a PR for it? :-)

#9! :)

Treora avatar Apr 23 '20 14:04 Treora