mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge b503184ac5 into sapling-pr-archive-poteto
This commit is contained in:
@@ -163,6 +163,21 @@ async function main() {
|
||||
if (otp != null) {
|
||||
opts.push(`--otp=${otp}`);
|
||||
}
|
||||
/**
|
||||
* Typically, the `latest` tag is reserved for stable package versions. Since the the compiler
|
||||
* is still pre-release, until we have a stable release let's only add the
|
||||
* `latest` tag to non-experimental releases.
|
||||
*
|
||||
* `latest` is added by default, so we only override it for experimental releases so that
|
||||
* those don't get the `latest` tag.
|
||||
*
|
||||
* TODO: Update this when we have a stable release.
|
||||
*/
|
||||
if (argv.tag === 'experimental') {
|
||||
opts.push('--tag=experimental'),
|
||||
} else {
|
||||
opts.push('--tag=latest'),
|
||||
}
|
||||
try {
|
||||
await spawnHelper(
|
||||
'npm',
|
||||
|
||||
Reference in New Issue
Block a user