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

Provide mechanism to override --dist-tag in lerna publish #1264

Open
sambostock opened this issue Apr 29, 2022 · 0 comments
Open

Provide mechanism to override --dist-tag in lerna publish #1264

sambostock opened this issue Apr 29, 2022 · 0 comments

Comments

@sambostock
Copy link
Contributor

sambostock commented Apr 29, 2022

hard codes the latest tag.

This is problematic for stacks publishing backports to previous versions of a package.

There should be a way to inject a custom value to be passed to --dist-tag.

Something similar exists in

def dist_tag(version)
# Pre-release SemVer tags such as 'beta', 'alpha', 'rc' and 'next'
# are treated as 'next' npm dist-tags.
# An 1.0.0-beta.1 would be installable using both:
# `yarn add package@1.0.0-beta.1` and `yarn add package@next`
return 'next' if ['-beta', '-alpha', '-rc', '-next'].any? { |tag| version.include?(tag) }
'latest'
end
but this too would be insufficient, as a backport stack would need to define an entirely custom tag (e.g. v5-stable or 5.x).


Relevant to https://github.com/Shopify/sewing-kit/pull/2954
cc. @BPScott

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

1 participant