-
Notifications
You must be signed in to change notification settings - Fork 153
Open
Description
| "--dist-tag latest", |
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
shipit-engine/app/models/shipit/deploy_spec/npm_discovery.rb
Lines 56 to 63 in f8f47fc
| 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 [email protected]` and `yarn add package@next` | |
| return 'next' if ['-beta', '-alpha', '-rc', '-next'].any? { |tag| version.include?(tag) } | |
| 'latest' | |
| end |
v5-stable or 5.x).
Relevant to https://github.com/Shopify/sewing-kit/pull/2954
cc. @BPScott
Metadata
Metadata
Assignees
Labels
No labels