Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the branch in prepare for multiple releases #958

Open
vinayakkulkarni opened this issue Jul 21, 2021 · 1 comment
Open

Getting the branch in prepare for multiple releases #958

vinayakkulkarni opened this issue Jul 21, 2021 · 1 comment

Comments

@vinayakkulkarni
Copy link
Contributor

Is your feature request related to a problem? Please describe.
What I'm trying to achieve is setting the next and latest tags based on branches. I want ship.js to trigger a new latest release when on branch main & next release when on branch next.

Describe the solution you'd like
Ability to modify the publishCommand by using git branches

Describe alternatives you've considered
N/A.

Additional context
N/A.

@eunjae-lee
Copy link
Contributor

Hi @vinayakkulkarni
Do you think publishCommand works for you?

({ isYarn, tag, defaultCommand, dir }) => defaultCommand

It may not have all the necessary information for you, but if you maintain main and next branches and have different major versions for them, then you could read package.json and according to decide which tag to publish it with. Does it make sense to you?

And asynchronous form of publishCommand function is not supported yet, so you'd better use something like fs.readFileSync() for it.

Let me know how it goes and if you have any question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants